From 5077faffaaa5d8667dc76bdf1b6563189e11cbf8 Mon Sep 17 00:00:00 2001 From: jBarz Date: Wed, 4 Oct 2017 01:18:00 -0400 Subject: [PATCH] test: pause child until parent is ready Pause child on startup using inspect-brk=0 until the parent debugger is ready. PR-URL: https://github.com/nodejs/node/pull/15774 Fixes: https://github.com/nodejs/node/issues/14897 Reviewed-By: Gibson Fahnestock Reviewed-By: Refael Ackermann Reviewed-By: Gireesh Punathil Reviewed-By: James M Snell Reviewed-By: Michael Dawson --- test/sequential/sequential.status | 2 -- test/sequential/test-inspector-stop-profile-after-done.js | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/test/sequential/sequential.status b/test/sequential/sequential.status index 797adfecd64cf5..1c38070bef7519 100644 --- a/test/sequential/sequential.status +++ b/test/sequential/sequential.status @@ -10,7 +10,6 @@ prefix sequential test-inspector-async-call-stack : PASS, FLAKY test-inspector-bindings : PASS, FLAKY test-inspector-debug-end : PASS, FLAKY -test-inspector-stop-profile-after-done: PASS, FLAKY [$system==linux] @@ -21,4 +20,3 @@ test-inspector-stop-profile-after-done: PASS, FLAKY [$system==freebsd] [$system==aix] -test-inspector-stop-profile-after-done: PASS, FLAKY diff --git a/test/sequential/test-inspector-stop-profile-after-done.js b/test/sequential/test-inspector-stop-profile-after-done.js index 4762bc523939b1..d0285df175b66f 100644 --- a/test/sequential/test-inspector-stop-profile-after-done.js +++ b/test/sequential/test-inspector-stop-profile-after-done.js @@ -5,7 +5,7 @@ const assert = require('assert'); const { NodeInstance } = require('../common/inspector-helper.js'); async function runTests() { - const child = new NodeInstance(['--inspect=0'], + const child = new NodeInstance(['--inspect-brk=0'], `let c = 0; const interval = setInterval(() => { console.log(new Object());