Skip to content

Commit 2f609c7

Browse files
committed
test: move debugger test case to parallel
nodejs/node#39300
1 parent 736a876 commit 2f609c7

1 file changed

Lines changed: 9 additions & 9 deletions

File tree

‎patches/node/fix_account_for_debugger_agent_race_condition.patch‎

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@ errors. This is remedied by adding a small timeout to the test.
99

1010
We'll either upstream this or figure out a better solution.
1111

12-
diff --git a/test/sequential/test-debugger-address.js b/test/sequential/test-debugger-address.js
12+
diff --git a/test/parallel/test-debugger-address.js b/test/parallel/test-debugger-address.js
1313
index ff31747016c2d49ac87fa272eba3231e9d4fbae5..e4f7b13aad3c60100e56df00165d1af550f1a117 100644
14-
--- a/test/sequential/test-debugger-address.js
15-
+++ b/test/sequential/test-debugger-address.js
14+
--- a/test/parallel/test-debugger-address.js
15+
+++ b/test/parallel/test-debugger-address.js
1616
@@ -59,6 +59,7 @@ function launchTarget(...args) {
1717
cli = startCLI([`${host || '127.0.0.1'}:${port}`]);
1818
return cli.waitForPrompt();
@@ -22,14 +22,14 @@ index ff31747016c2d49ac87fa272eba3231e9d4fbae5..e4f7b13aad3c60100e56df00165d1af5
2222
.then(() => cli.waitFor(/break/))
2323
.then(() => cli.waitForPrompt())
2424
diff --git a/test/sequential/test-debugger-pid.js b/test/sequential/test-debugger-pid.js
25-
index 97de9f40369d2d1df9674c6df5bbaf78022667c6..3d51a8963ba24e5e5f6a64cd792859535670dd9a 100644
25+
index 402c1f86dd4ed99b413eca5fce8a2db47797b11a..74ef0a1618ccf1f6671bbe2a03548eee6cd0b88c 100644
2626
--- a/test/sequential/test-debugger-pid.js
2727
+++ b/test/sequential/test-debugger-pid.js
28-
@@ -38,6 +38,7 @@ function launchTarget(...args) {
29-
cli = startCLI(['-p', `${target.pid}`]);
30-
return cli.waitForPrompt();
31-
})
32-
+ .then(() => new Promise(resolve => setTimeout(resolve, 1000)))
28+
@@ -41,6 +41,7 @@ function launchTarget(...args) {
3329
.then(() => cli.command('sb("alive.js", 3)'))
3430
.then(() => cli.waitFor(/break/))
3531
.then(() => cli.waitForPrompt())
32+
+ .then(() => new Promise(resolve => setTimeout(resolve, 1000)))
33+
.then(() => {
34+
assert.match(
35+
cli.output,

0 commit comments

Comments
 (0)