agnivade / wasmbrowsertest

Run WASM tests inside your browser
MIT License
183 stars 24 forks source link

Flaky test TestRun/panic_fails in Windows #59

Open agnivade opened 2 months ago

agnivade commented 2 months ago
=== RUN   TestRun/panic_fails
=== PAUSE TestRun/panic_fails
=== RUN   TestRun/panic_in_next_run_of_event_loop_fails
=== PAUSE TestRun/panic_in_next_run_of_event_loop_fails
=== CONT  TestRun/panic_in_next_run_of_event_loop_fails
=== CONT  TestRun/panic_fails
    main_test.go:73: Unexpected error message: "exit with status 2" != "websocket url timeout reached"
=== NAME  TestRun/panic_in_next_run_of_event_loop_fails
    main_test.go:73: Unexpected error message: "context canceled" != "websocket url timeout reached"
--- FAIL: TestRun (0.00s)
    --- FAIL: TestRun/panic_fails (24.93s)
    --- FAIL: TestRun/panic_in_next_run_of_event_loop_fails (24.93s)
hajimehoshi commented 2 months ago

We have a very similar issue https://github.com/hajimehoshi/ebiten/issues/2982

hajimehoshi commented 2 months ago

https://pkg.go.dev/github.com/chromedp/chromedp#WSURLReadTimeout

Would it be possible to adjust the timeout?

agnivade commented 2 months ago

Hmm .. the default value seems 20 seconds which should be more than enough. I could increase it, but it would just push the goal post. I wonder if there's a deeper problem here.

agnivade commented 4 weeks ago

Re-ran tests multiple times with the associated PR. Looks like the problem is gone now.

agnivade commented 4 weeks ago

Well, no. It fails in master. Reopening, and skipping the test on Windows for now.