Skip to content

Commit

Permalink
test: enable parallel/test-debugger-random-port-with-inspect-port (e…
Browse files Browse the repository at this point in the history
…lectron#39533)

test: enable parallel/test-debugger-random-port-with-inspect-port
  • Loading branch information
codebytere authored Aug 17, 2023
1 parent aeb89b1 commit 0621f39
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
12 changes: 12 additions & 0 deletions patches/node/fix_account_for_debugger_agent_race_condition.patch
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,18 @@ index eab99c9b0e2fb387ef9a716396e41c7fc93e93bc..ef8b20a60df88a0a412c309f597e1b1f
await cli.waitForPrompt();
await cli.command('sb("alive.js", 3)');
await cli.waitFor(/break/);
diff --git a/test/parallel/test-debugger-random-port-with-inspect-port.js b/test/parallel/test-debugger-random-port-with-inspect-port.js
index 3acc6bdd733eb002a2592960528bb04eebb2dc60..a9f2d29327464281c10d4c2210277eab47c9a262 100644
--- a/test/parallel/test-debugger-random-port-with-inspect-port.js
+++ b/test/parallel/test-debugger-random-port-with-inspect-port.js
@@ -13,6 +13,7 @@ const script = fixtures.path('debugger', 'three-lines.js');
const cli = startCLI(['--inspect-port=0', script]);

(async () => {
+ await new Promise(resolve => setTimeout(resolve, 1000));
await cli.waitForInitialBreak();
await cli.waitForPrompt();
assert.match(cli.output, /debug>/, 'prints a prompt');
diff --git a/test/sequential/test-debugger-pid.js b/test/sequential/test-debugger-pid.js
index 99062149dfe3374b86439850e0655383e2bad662..78c173f5073818fae7d46413842cb7790130c3f5 100644
--- a/test/sequential/test-debugger-pid.js
Expand Down
1 change: 0 additions & 1 deletion script/node-disabled-tests.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
"parallel/test-crypto-modp1-error",
"parallel/test-crypto-padding-aes256",
"parallel/test-crypto-secure-heap",
"parallel/test-debugger-random-port-with-inspect-port",
"parallel/test-dgram-send-cb-quelches-error",
"parallel/test-fs-utimes-y2K38",
"parallel/test-http2-clean-output",
Expand Down

0 comments on commit 0621f39

Please sign in to comment.