Skip to content

Commit

Permalink
test: improve test
Browse files Browse the repository at this point in the history
  • Loading branch information
fmeriaux committed Jan 17, 2024
1 parent 6d74acc commit 8a4d175
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions core/shared/src/test/scala/fs2/StreamCombinatorsSuite.scala
Original file line number Diff line number Diff line change
Expand Up @@ -203,12 +203,12 @@ class StreamCombinatorsSuite extends Fs2Suite {
}

test("keepAlive") {
val delay = 200.milliseconds
val sleep = delay + (delay / 2)
val maxIdle = 200.milliseconds
val sleep = 250.milliseconds
TestControl.executeEmbed {
(Stream(1, 2) ++ Stream.sleep[IO](sleep) ++ Stream(3, 4) ++ Stream
.sleep[IO](sleep * 2) ++ Stream(5))
.keepAlive(delay, 0)
.keepAlive(maxIdle, 0)
.assertEmits(List(1, 2, 0, 3, 4, 0, 0, 5))
}
}
Expand Down

0 comments on commit 8a4d175

Please sign in to comment.