Skip to content

Commit 756a049

Browse files
addaleaxtargos
authored andcommitted
test: make sure that inspector tests finish
PR-URL: #32673 Reviewed-By: Rich Trott <[email protected]> Reviewed-By: Eugene Ostroukhov <[email protected]> Reviewed-By: Michaël Zasso <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: James M Snell <[email protected]>
1 parent f41660a commit 756a049

28 files changed

+33
-30
lines changed

test/parallel/test-inspector-bindings.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,4 +127,4 @@ async function doTests() {
127127
await testNoCrashConsoleLogBeforeThrow();
128128
}
129129

130-
doTests();
130+
doTests().then(common.mustCall());

test/parallel/test-inspector-esm.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,4 +109,4 @@ async function runTest() {
109109
assert.strictEqual((await child.expectShutdown()).exitCode, 55);
110110
}
111111

112-
runTest();
112+
runTest().then(common.mustCall());

test/parallel/test-inspector-multisession-js.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ async function test() {
5757
}
5858

5959
const interval = setInterval(() => {}, 1000);
60-
test().then(() => {
60+
test().then(common.mustCall(() => {
6161
clearInterval(interval);
6262
console.log('Done!');
63-
});
63+
}));

test/parallel/test-inspector-multisession-ws.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,4 +74,4 @@ async function runTest() {
7474
return child.expectShutdown();
7575
}
7676

77-
runTest();
77+
runTest().then(common.mustCall());

test/parallel/test-inspector-reported-host.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,4 @@ async function test() {
1616
child.kill();
1717
}
1818

19-
test();
19+
test().then(common.mustCall());

test/parallel/test-inspector-tracing-domain.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,4 +66,4 @@ async function test() {
6666
console.log('Success');
6767
}
6868

69-
test();
69+
test().then(common.mustCall());

test/parallel/test-inspector-wait-for-connection.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,4 +58,4 @@ async function runTests() {
5858
assert.throws(() => require('inspector').waitForDebugger(), re);
5959
}
6060

61-
runTests();
61+
runTests().then(common.mustCall());

test/parallel/test-inspector-waiting-for-disconnect.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,4 +41,4 @@ async function runTest() {
4141
assert.strictEqual((await child.expectShutdown()).exitCode, 55);
4242
}
4343

44-
runTest();
44+
runTest().then(common.mustCall());

test/sequential/test-inspector-async-hook-setup-at-inspect-brk.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,4 +46,4 @@ async function runTests() {
4646
assert.strictEqual((await instance.expectShutdown()).exitCode, 55);
4747
}
4848

49-
runTests();
49+
runTests().then(common.mustCall());

test/sequential/test-inspector-async-hook-setup-at-signal.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,4 +81,4 @@ async function runTests() {
8181
instance.kill();
8282
}
8383

84-
runTests();
84+
runTests().then(common.mustCall());

0 commit comments

Comments
 (0)