Skip to content

Commit 3c348f3

Browse files
committed
squash: fix nit
1 parent 10c64e9 commit 3c348f3

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

test/parallel/test-debug-brk.js

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,9 @@ proc.stderr.on('data', (chunk) => {
2626

2727
agent.stdout.on('data', (chunk) => {
2828
agentStdout += chunk;
29-
if (/connecting to .+ ok/.test(agentStdout)) {
30-
if (needToExit) {
31-
needToExit = false;
32-
exitAll([proc, agent]);
33-
}
29+
if (/connecting to .+ ok/.test(agentStdout) && needToExit) {
30+
needToExit = false;
31+
exitAll([proc, agent]);
3432
}
3533
});
3634
}

0 commit comments

Comments
 (0)