Skip to content

Commit

Permalink
fix flaky test
Browse files Browse the repository at this point in the history
  • Loading branch information
fwbrasil committed Jan 16, 2025
1 parent c9fcc45 commit fdd6723
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions kyo-core/shared/src/test/scala/kyo/ClockTest.scala
Original file line number Diff line number Diff line change
Expand Up @@ -335,8 +335,8 @@ class ClockTest extends Test:
instants <- Kyo.fill(10)(channel.take)
_ <- task.interrupt
_ <- Async.sleep(2.millis)
result <- channel.poll
yield assert(result.isEmpty)
_ <- untilTrue(channel.poll.map(_.isEmpty))
yield succeed
}
"with time control" in runNotJS {
Clock.withTimeControl { control =>
Expand Down

0 comments on commit fdd6723

Please sign in to comment.