From 89cd216863d28492bbdbebbaf3f4c4d690d86f5c Mon Sep 17 00:00:00 2001 From: Alex Henning Johannessen Date: Mon, 10 Oct 2022 09:26:39 +0100 Subject: [PATCH] runtime: change when dispatcher shuts down in fs2grpc suite - allow test context running to completion before invoking dispatcher shutdown. This should make tests be less brittle wrt. races that cause tests to fail. --- runtime/src/test/scala/Fs2GrpcSuite.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/runtime/src/test/scala/Fs2GrpcSuite.scala b/runtime/src/test/scala/Fs2GrpcSuite.scala index 44796836..719d124f 100644 --- a/runtime/src/test/scala/Fs2GrpcSuite.scala +++ b/runtime/src/test/scala/Fs2GrpcSuite.scala @@ -74,8 +74,8 @@ class Fs2GrpcSuite extends CatsEffectSuite with CatsEffectFunFixtures { } body(ec, r, fakeDispatcher) - shutdown.unsafeRunAndForget() ec.tickAll() + shutdown.unsafeRunAndForget() } } }