summaryrefslogtreecommitdiff
path: root/test/parallel
diff options
context:
space:
mode:
authorAnna Henningsen <anna@addaleax.net>2020-04-05 22:27:46 +0200
committerAnna Henningsen <anna@addaleax.net>2020-04-08 16:43:13 +0200
commite2ea73af0447130ca033b59b62092474ed9f4ec4 (patch)
tree6958da569a2b9e86950d92f101c33dad8f75d27d /test/parallel
parentc849f2d4f8ff19c830b6a97bd6978bf41f878e8b (diff)
downloadnode-new-e2ea73af0447130ca033b59b62092474ed9f4ec4.tar.gz
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>
Diffstat (limited to 'test/parallel')
-rw-r--r--test/parallel/test-inspector-bindings.js2
-rw-r--r--test/parallel/test-inspector-esm.js2
-rw-r--r--test/parallel/test-inspector-multisession-js.js4
-rw-r--r--test/parallel/test-inspector-multisession-ws.js2
-rw-r--r--test/parallel/test-inspector-reported-host.js2
-rw-r--r--test/parallel/test-inspector-tracing-domain.js2
-rw-r--r--test/parallel/test-inspector-wait-for-connection.js2
-rw-r--r--test/parallel/test-inspector-waiting-for-disconnect.js2
8 files changed, 9 insertions, 9 deletions
diff --git a/test/parallel/test-inspector-bindings.js b/test/parallel/test-inspector-bindings.js
index c632bb8840..3e88c858f8 100644
--- a/test/parallel/test-inspector-bindings.js
+++ b/test/parallel/test-inspector-bindings.js
@@ -127,4 +127,4 @@ async function doTests() {
await testNoCrashConsoleLogBeforeThrow();
}
-doTests();
+doTests().then(common.mustCall());
diff --git a/test/parallel/test-inspector-esm.js b/test/parallel/test-inspector-esm.js
index f0848d2942..707fa7bb56 100644
--- a/test/parallel/test-inspector-esm.js
+++ b/test/parallel/test-inspector-esm.js
@@ -109,4 +109,4 @@ async function runTest() {
assert.strictEqual((await child.expectShutdown()).exitCode, 55);
}
-runTest();
+runTest().then(common.mustCall());
diff --git a/test/parallel/test-inspector-multisession-js.js b/test/parallel/test-inspector-multisession-js.js
index 92879d3ff3..31aa0c5f56 100644
--- a/test/parallel/test-inspector-multisession-js.js
+++ b/test/parallel/test-inspector-multisession-js.js
@@ -57,7 +57,7 @@ async function test() {
}
const interval = setInterval(() => {}, 1000);
-test().then(() => {
+test().then(common.mustCall(() => {
clearInterval(interval);
console.log('Done!');
-});
+}));
diff --git a/test/parallel/test-inspector-multisession-ws.js b/test/parallel/test-inspector-multisession-ws.js
index c5ebfd6ef8..7981eef0d3 100644
--- a/test/parallel/test-inspector-multisession-ws.js
+++ b/test/parallel/test-inspector-multisession-ws.js
@@ -74,4 +74,4 @@ async function runTest() {
return child.expectShutdown();
}
-runTest();
+runTest().then(common.mustCall());
diff --git a/test/parallel/test-inspector-reported-host.js b/test/parallel/test-inspector-reported-host.js
index b3bc736803..676e5387c8 100644
--- a/test/parallel/test-inspector-reported-host.js
+++ b/test/parallel/test-inspector-reported-host.js
@@ -16,4 +16,4 @@ async function test() {
child.kill();
}
-test();
+test().then(common.mustCall());
diff --git a/test/parallel/test-inspector-tracing-domain.js b/test/parallel/test-inspector-tracing-domain.js
index 9d3d33d94d..152df14915 100644
--- a/test/parallel/test-inspector-tracing-domain.js
+++ b/test/parallel/test-inspector-tracing-domain.js
@@ -66,4 +66,4 @@ async function test() {
console.log('Success');
}
-test();
+test().then(common.mustCall());
diff --git a/test/parallel/test-inspector-wait-for-connection.js b/test/parallel/test-inspector-wait-for-connection.js
index 44bb6dd5e1..0f562faede 100644
--- a/test/parallel/test-inspector-wait-for-connection.js
+++ b/test/parallel/test-inspector-wait-for-connection.js
@@ -58,4 +58,4 @@ async function runTests() {
assert.throws(() => require('inspector').waitForDebugger(), re);
}
-runTests();
+runTests().then(common.mustCall());
diff --git a/test/parallel/test-inspector-waiting-for-disconnect.js b/test/parallel/test-inspector-waiting-for-disconnect.js
index 187875abc1..e9d39978d7 100644
--- a/test/parallel/test-inspector-waiting-for-disconnect.js
+++ b/test/parallel/test-inspector-waiting-for-disconnect.js
@@ -41,4 +41,4 @@ async function runTest() {
assert.strictEqual((await child.expectShutdown()).exitCode, 55);
}
-runTest();
+runTest().then(common.mustCall());