disneystreaming / weaver-test

A test framework that runs everything in parallel.
https://disneystreaming.github.io/weaver-test/
Other
439 stars 49 forks source link

Failed IOs hang the runner on JS #724

Closed kubukoz closed 8 months ago

kubukoz commented 8 months ago
package demo

import cats.effect.IO
import weaver._

object DemoTest extends SimpleIOSuite {

  test("this should fail rather than hang") {
    IO.unit *> IO.raiseError(new Throwable("woop woop")).as(success)
  }
}

This appears to hang on JS on both Scala 2.13.12 and 3.3.1.

Other versions involved:

I will confirm whether this is a Weaver problem specifically or a regression in the other releases.

Full repro, with crossproject for comparison against the JVM: https://github.com/kubukoz/demos/tree/repro-js-fail-hang

Update: this seems to have started between 0.7.15 and 0.8.0. Diff: https://github.com/disneystreaming/weaver-test/compare/v0.6.15...v0.8.0

Update 2: bisected down to #563.