Skip to content

Commit

Permalink
Merge pull request #3185 from Angel-O/fixing-par-test
Browse files Browse the repository at this point in the history
fixing assertion in parEval test
  • Loading branch information
armanbilge authored Mar 26, 2023
2 parents f2eb104 + dc14bd4 commit db68fb5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion core/shared/src/test/scala/fs2/ParEvalMapSuite.scala
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
package fs2

import cats.effect.std.CountDownLatch
import cats.effect.testkit.TestControl
import cats.effect.{Deferred, IO}
import cats.syntax.all._
import org.scalacheck.effect.PropF.forAllF
Expand Down Expand Up @@ -66,7 +67,9 @@ class ParEvalMapSuite extends Fs2Suite {
}

test("may not be preserved in parEvalMapUnordered") {
run(_.parEvalMapUnorderedUnbounded(identity)).assertEquals(List(1, 2, 3))
TestControl.executeEmbed(
run(_.parEvalMapUnorderedUnbounded(identity)).assertEquals(List(1, 2, 3))
)
}

def run(pipe: Pipe[IO, IO[Int], Int]) =
Expand Down

0 comments on commit db68fb5

Please sign in to comment.