From c5fbd51fb69880891e34ac18d8cdbf012f0e072a Mon Sep 17 00:00:00 2001 From: Sam Pillsworth Date: Thu, 13 Jul 2023 20:20:43 -0400 Subject: [PATCH] remove test sleep I believe that this sleep is no longer necessary now that the `alive` resource, and it's associated race condition, has been removed. --- .../shared/src/test/scala/cats/effect/std/DispatcherSpec.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/shared/src/test/scala/cats/effect/std/DispatcherSpec.scala b/tests/shared/src/test/scala/cats/effect/std/DispatcherSpec.scala index cf95a3ead9..ea27049c25 100644 --- a/tests/shared/src/test/scala/cats/effect/std/DispatcherSpec.scala +++ b/tests/shared/src/test/scala/cats/effect/std/DispatcherSpec.scala @@ -360,7 +360,7 @@ class DispatcherSpec extends BaseSpec with DetectPlatform { implicit ticker => val test = dispatcher.allocated.flatMap { case (runner, release) => - IO(runner.unsafeRunAndForget(IO.sleep(50.millis) *> release)) *> + IO(runner.unsafeRunAndForget(release)) *> IO.sleep(100.millis) *> IO(runner.unsafeRunAndForget(IO(ko)) must throwAn[IllegalStateException]) }