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 bc2a698 commit c9fcc45
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions kyo-core/shared/src/test/scala/kyo/ClockTest.scala
Original file line number Diff line number Diff line change
Expand Up @@ -400,9 +400,8 @@ class ClockTest extends Test:
task <- Clock.repeatWithDelay(1.millis)(Clock.now.map(channel.put))
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 {
Expand Down

0 comments on commit c9fcc45

Please sign in to comment.