Skip to content

Commit ad65c5c

Browse files
committed
fixup! test_runner: handle process exit events in harness and global setup
1 parent 0d7692f commit ad65c5c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/internal/test_runner/harness.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ function setupProcessState(root, globalOptions) {
265265
process.removeListener('uncaughtException', exceptionHandler);
266266
process.removeListener('unhandledRejection', rejectionHandler);
267267
process.removeListener('beforeExit', exitHandler);
268-
process.removeListener('exit', exitHandler);
268+
process.removeListener('exit', terminationHandler);
269269
if (globalOptions.isTestRunner) {
270270
process.removeListener('SIGINT', terminationHandler);
271271
process.removeListener('SIGTERM', terminationHandler);

0 commit comments

Comments
 (0)