Skip to content

Commit 993c0db

Browse files
addaleaxtargos
authored andcommittedJul 2, 2019
test: make sure test function resolves in test-worker-debug
Use the common `.then(common.mustCall())` check to verify that. Also, we should not use `process.abort()` in `test/parallel`; if the test fails, that leaves core dumps lying around on POSIX systems. PR-URL: #28155 Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Trivikram Kamat <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Richard Lau <[email protected]> Reviewed-By: Rich Trott <[email protected]> Reviewed-By: James M Snell <[email protected]>
1 parent dec5b22 commit 993c0db

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎test/parallel/test-worker-debug.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,7 @@ async function testWaitForDisconnectInWorker(session, post) {
272272

273273
session.disconnect();
274274
console.log('Test done');
275-
})().catch((err) => {
275+
})().then(common.mustCall()).catch((err) => {
276276
console.error(err);
277-
process.abort();
277+
process.exitCode = 1;
278278
});

0 commit comments

Comments
 (0)
Please sign in to comment.