mirror of
https://github.com/nodejs/node.git
synced 2026-11-21 12:59:16 -05:00
test: make sure that inspector tests finish
PR-URL: https://github.com/nodejs/node/pull/32673 Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Eugene Ostroukhov <eostroukhov@google.com> Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
This commit is contained in:
28 files changed
+33
-30
No files matched your search
@@ -127,4 +127,4 @@ async function doTests() {
|
||||
await testNoCrashConsoleLogBeforeThrow();
|
||||
}
|
||||
|
||||
doTests();
|
||||
doTests().then(common.mustCall());
|
||||
@@ -109,4 +109,4 @@ async function runTest() {
|
||||
assert.strictEqual((await child.expectShutdown()).exitCode, 55);
|
||||
}
|
||||
|
||||
runTest();
|
||||
runTest().then(common.mustCall());
|
||||
@@ -57,7 +57,7 @@ async function test() {
|
||||
}
|
||||
|
||||
const interval = setInterval(() => {}, 1000);
|
||||
test().then(() => {
|
||||
test().then(common.mustCall(() => {
|
||||
clearInterval(interval);
|
||||
console.log('Done!');
|
||||
});
|
||||
}));
|
||||
@@ -74,4 +74,4 @@ async function runTest() {
|
||||
return child.expectShutdown();
|
||||
}
|
||||
|
||||
runTest();
|
||||
runTest().then(common.mustCall());
|
||||
@@ -16,4 +16,4 @@ async function test() {
|
||||
child.kill();
|
||||
}
|
||||
|
||||
test();
|
||||
test().then(common.mustCall());
|
||||
@@ -66,4 +66,4 @@ async function test() {
|
||||
console.log('Success');
|
||||
}
|
||||
|
||||
test();
|
||||
test().then(common.mustCall());
|
||||
@@ -58,4 +58,4 @@ async function runTests() {
|
||||
assert.throws(() => require('inspector').waitForDebugger(), re);
|
||||
}
|
||||
|
||||
runTests();
|
||||
runTests().then(common.mustCall());
|
||||
@@ -41,4 +41,4 @@ async function runTest() {
|
||||
assert.strictEqual((await child.expectShutdown()).exitCode, 55);
|
||||
}
|
||||
|
||||
runTest();
|
||||
runTest().then(common.mustCall());
|
||||
Reference in new issue
Block a user