Skip to content

Commit

Permalink
[api]: Fix unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
tiagohm committed Aug 16, 2024
1 parent b9f8168 commit 1debf77
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nebulosa-time/src/test/kotlin/SystemClockTest.kt
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@ class SystemClockTest {

@Test
fun systemDefault() {
ChronoUnit.MICROS.between(LocalDateTime.now(SystemClock), LocalDateTime.now()) shouldBeLessThanOrEqual 1000L
ChronoUnit.MICROS.between(LocalDateTime.now(SystemClock), LocalDateTime.now()) shouldBeLessThanOrEqual 10000L
SystemClock.zone shouldBeSameInstanceAs ZoneId.systemDefault()

TimeZone.setDefault(TimeZone.getTimeZone("America/Manaus"))

ChronoUnit.MICROS.between(LocalDateTime.now(SystemClock), LocalDateTime.now()) shouldBeLessThanOrEqual 1000L
ChronoUnit.MICROS.between(LocalDateTime.now(SystemClock), LocalDateTime.now()) shouldBeLessThanOrEqual 10000L
SystemClock.zone shouldBeSameInstanceAs ZoneId.systemDefault()
}
}

0 comments on commit 1debf77

Please sign in to comment.