Skip to content

Commit

Permalink
scalastyle fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
allisonport-db committed Nov 26, 2024
1 parent dfc816d commit e1dbe30
Showing 1 changed file with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,8 @@ class MetricsReportSuite extends AnyFunSuite with TestUtils {
case None => assert(!snapshotReport.exception().isPresent)
}
assert(snapshotReport.reportUUID != null)
assert(Objects.equals(snapshotReport.version, expectedVersion), s"Expected version $expectedVersion found ${snapshotReport.version}")
assert(Objects.equals(snapshotReport.version, expectedVersion),
s"Expected version $expectedVersion found ${snapshotReport.version}")
assert(Objects.equals(snapshotReport.providedTimestamp, expectedProvidedTimestamp))

// Since we cannot know the actual durations of these we sanity check that they are > 0 and
Expand Down Expand Up @@ -260,8 +261,8 @@ class MetricsReportSuite extends AnyFunSuite with TestUtils {
)

// Test getSnapshotAsOfTimestamp
val version2Timestamp = new File(FileNames.deltaFile(new Path(tempDir.getCanonicalPath, "_delta_log"), 2))
.lastModified()
val version2Timestamp = new File(
FileNames.deltaFile(new Path(tempDir.getCanonicalPath, "_delta_log"), 2)).lastModified()
checkSnapshotReport(
(table, engine) => table.getSnapshotAsOfTimestamp(engine, version2Timestamp),
tempDir.getCanonicalPath,
Expand Down Expand Up @@ -302,7 +303,8 @@ class MetricsReportSuite extends AnyFunSuite with TestUtils {

// Test getSnapshotAsOfTimestamp
// We use the timestamp of version 0
val version0Timestamp = new File(FileNames.deltaFile(new Path(path, "_delta_log"), 0)).lastModified()
val version0Timestamp = new File(FileNames.deltaFile(new Path(path, "_delta_log"), 0))
.lastModified()
checkSnapshotReport(
(table, engine) => table.getSnapshotAsOfTimestamp(engine, version0Timestamp),
path,
Expand Down

0 comments on commit e1dbe30

Please sign in to comment.