Skip to content

Commit

Permalink
Fix the test
Browse files Browse the repository at this point in the history
  • Loading branch information
armanbilge committed Mar 24, 2022
1 parent 42cb1f9 commit f4d02e4
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,13 @@ class AsyncPlatformSpec extends BaseSpec {
override def cancel(mayInterruptIfRunning: Boolean) = false
}

IO.fromCompletableFuture(IO(cf)).start.flatMap(_.cancel) must nonTerminate
val io = for {
fiber <- IO.fromCompletableFuture(IO(cf)).start
_ <- IO.cede
_ <- fiber.cancel
} yield ()

io must nonTerminate
}
}
}

0 comments on commit f4d02e4

Please sign in to comment.