Potential flaky backend test
Hi team, fyi, there is this error when running the backend test
https://github.com/HeyPuter/puter/actions/runs/25989404096/job/76450089987?pr=3117
```
⎯⎯⎯⎯⎯⎯ Unhandled Errors ⎯⎯⎯⎯⎯⎯
Vitest caught 1 unhandled error during the test run.
This might cause false positive tests. Resolve unhandled errors to make sure your tests are not affected.
⎯⎯⎯⎯ Unhandled Rejection ⎯⎯⎯⎯⎯
EnvironmentTeardownError: [vitest-worker]: Closing rpc while "onUserConsoleLog" was pending
This error originated in "src/backend/core/http/middleware/privateAppGate.test.ts" test file. It doesn't mean the error was thrown inside the file itself, but while it was running.
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Test Files 93 passed | 16 skipped (109)
Tests 2029 passed | 16 skipped (2045)
Errors 1 error
Start at 02:37:17
Duration 81.94s (transform 7.53s, setup 0ms, import 154.03s, tests 47.31s, environment 17ms)
Error: Process completed with exit code 1.
```
Rerunning the test makes the error disappear, but i suspect there might be a test that is behaving unexpectedly (unhandled error)
1 条评论