Skip to content

Commit

Permalink
Fix StreamCombinatorsSuite for JS
Browse files Browse the repository at this point in the history
  • Loading branch information
danicheg committed Sep 29, 2021
1 parent 0d6f6cb commit ca48a8a
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions core/shared/src/test/scala/fs2/StreamCombinatorsSuite.scala
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,9 @@ class StreamCombinatorsSuite extends Fs2Suite {

test("filters up to N items in parallel") {
val s = Stream.range(0, 100)
val n = 5
val n =
if (isJVM) 5
else 2 // for some reason JS is running evalFilterAsync with only 2 concurrent level

(Semaphore[IO](n.toLong), SignallingRef[IO, Int](0)).tupled
.flatMap { case (sem, sig) =>
Expand Down Expand Up @@ -460,7 +462,9 @@ class StreamCombinatorsSuite extends Fs2Suite {

test("filters up to N items in parallel") {
val s = Stream.range(0, 100)
val n = 5
val n =
if (isJVM) 5
else 2 // for some reason JS is running evalFilterAsync with only 2 concurrent level

(Semaphore[IO](n.toLong), SignallingRef[IO, Int](0)).tupled
.flatMap { case (sem, sig) =>
Expand Down

0 comments on commit ca48a8a

Please sign in to comment.