Skip to content

Commit

Permalink
resolution is not guaranteed, so update the test assumption
Browse files Browse the repository at this point in the history
  • Loading branch information
AlmasB committed Dec 17, 2024
1 parent ae1503f commit 178fbc8
Showing 1 changed file with 4 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -78,12 +78,10 @@ class AsyncServiceTest {

assertThat(count.get(), `is`(0))

// 3 services resolved faster than their combined execution time
assertThat(measureTimeMillis {
services.forEach { service ->
service.onGameUpdate(1.0)
}
}.toDouble(), lessThan(300.0))
// resolve services
services.forEach { service ->
service.onGameUpdate(1.0)
}

assertThat(count.get(), `is`(greaterThan(2)))
}
Expand Down

0 comments on commit 178fbc8

Please sign in to comment.