Commit a2bccda
committed
Fix force exit to work unconditionally after cleanup
- Remove process.listenerCount check that was preventing exit
- Force exit unconditionally after 2-second delay
- Tested locally: process exits in ~9s instead of hanging
- Works with both _afterSuite and _cleanup hooks
- Respects process.exitCode for test failures1 parent c212a18 commit a2bccda
1 file changed
+4
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
874 | 874 | | |
875 | 875 | | |
876 | 876 | | |
877 | | - | |
878 | | - | |
879 | | - | |
880 | | - | |
| 877 | + | |
| 878 | + | |
881 | 879 | | |
882 | 880 | | |
883 | 881 | | |
| |||
1000 | 998 | | |
1001 | 999 | | |
1002 | 1000 | | |
1003 | | - | |
1004 | | - | |
1005 | | - | |
1006 | | - | |
| 1001 | + | |
| 1002 | + | |
1007 | 1003 | | |
1008 | 1004 | | |
1009 | 1005 | | |
| |||
0 commit comments