Skip to content

Commit

Permalink
fix flaky test
Browse files Browse the repository at this point in the history
  • Loading branch information
RedYetiDev committed Oct 28, 2024
1 parent 547568c commit 1106f9b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/parallel/test-repl.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ async function runReplTests(socket, prompt, tests) {
// Split off the current line.
const newlineOffset = lineBuffer.indexOf('\n');
let actualLine = lineBuffer.slice(0, newlineOffset);
if (expectedLine == 42) console.log([lineBuffer]);
lineBuffer = lineBuffer.slice(newlineOffset + 1);

// This might have been skipped in the loop above because the buffer
Expand Down Expand Up @@ -1041,6 +1042,7 @@ function event(ee, expected) {
common.expectWarning({
DeprecationWarning: {
DEP0185: 'Instantiating REPLServer without the \'new\' keyword has been deprecated.',
DEP0169: '`url.parse()` behavior is not standardized and prone to errors that have security implications. Use the WHATWG URL API instead. CVEs are not issued for `url.parse()` vulnerabilities.',
}
});
server.emit('line', '.exit');
Expand Down

0 comments on commit 1106f9b

Please sign in to comment.