diff --git a/munit/native/src/main/scala/munit/internal/PlatformCompat.scala b/munit/native/src/main/scala/munit/internal/PlatformCompat.scala index a4ab1294..79112d82 100644 --- a/munit/native/src/main/scala/munit/internal/PlatformCompat.scala +++ b/munit/native/src/main/scala/munit/internal/PlatformCompat.scala @@ -24,7 +24,9 @@ object PlatformCompat { duration: Duration, ec: ExecutionContext ): Future[T] = { - startFuture() + val f = startFuture() + scala.scalanative.runtime.loop() + f } def setTimeout(ms: Int)(body: => Unit): () => Unit = { Thread.sleep(ms)