Skip to content

Commit 6c3e504

Browse files
Trotttargos
authored andcommitted
test: fix test-inspector-cli-address
The test was assuming that the entire string being sought would arrive in a single data chunk, but it can be split across multiple chunks. PR-URL: #38161 Refs: #36481 Reviewed-By: Matteo Collina <[email protected]> Reviewed-By: Jan Krems <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Stephen Belanger <[email protected]> Reviewed-By: Gerhard Stöbich <[email protected]> Reviewed-By: Michaël Zasso <[email protected]>
1 parent 6fff9ff commit 6c3e504

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

deps/node-inspect/test/cli/address.test.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,9 @@ function launchTarget(...args) {
1616
};
1717
childProc.on('exit', onExit);
1818
childProc.stderr.setEncoding('utf8');
19-
childProc.stderr.on('data', (data) => {
19+
let data = '';
20+
childProc.stderr.on('data', (chunk) => {
21+
data += chunk;
2022
const ret = kDebuggerMsgReg.exec(data);
2123
childProc.removeListener('exit', onExit);
2224
if (ret) {

0 commit comments

Comments
 (0)