Skip to content

Commit

Permalink
Grammar
Browse files Browse the repository at this point in the history
  • Loading branch information
kober32 committed Nov 20, 2023
1 parent d911c2e commit 761220f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions library/src/androidTest/java/IntegrationTests.kt
Original file line number Diff line number Diff line change
Expand Up @@ -90,12 +90,12 @@ class IntegrationTests {
Assert.assertNotNull(date)

// Sometimes the CI or the emulator on the CI are behind with time because emulator boot takes some time.
// To verify that that time makes sense (at the diff is not like hours or days) accept 10 minus window.
// To verify that the time makes sense (the diff is not like hours or days) we accept 10 minus window.
val maxDiffSeconds = 60 * 10

val secDiff = kotlin.math.abs(date.toEpochSecond() - ZonedDateTime.now().toEpochSecond())
// if the difference between the server and the device is more than the limit, there is something wrong with the server
// or there is a bug. Both cases needs a fix
// If the difference between the server and the device is more than the limit, there is something wrong with the server
// or there is a bug. Both cases need a fix.
Assert.assertTrue("Difference is $secDiff seconds, but max $maxDiffSeconds seconds is allowed", secDiff < maxDiffSeconds)
}

Expand Down

0 comments on commit 761220f

Please sign in to comment.