Commit dd909f1
committed
fix: Prevent process from hanging after tests complete
- Add force-exit timeout (100ms) in run command to ensure process exits
- Respects --no-exit flag if explicitly set
- Increase browser stop timeout from 5s to 10s for browser restart strategy
This fixes an issue where tests would complete successfully but the Node.js
process would hang indefinitely, waiting for the event loop to clear.
The issue was caused by Mocha 11.x waiting for all handles to close,
but some browser-related handles may remain open even after proper cleanup.
The force-exit gives cleanup operations time to complete (100ms) then
explicitly calls process.exit() to terminate the process cleanly.1 parent 282e58a commit dd909f1
2 files changed
+11
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
45 | 54 | | |
46 | 55 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
718 | 718 | | |
719 | 719 | | |
720 | 720 | | |
721 | | - | |
| 721 | + | |
722 | 722 | | |
723 | 723 | | |
724 | | - | |
| 724 | + | |
725 | 725 | | |
726 | 726 | | |
727 | 727 | | |
| |||
0 commit comments