diff options
Diffstat (limited to 'test/parallel/test-repl-sigint.js')
-rw-r--r-- | test/parallel/test-repl-sigint.js | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/test/parallel/test-repl-sigint.js b/test/parallel/test-repl-sigint.js index 303973194f..5ee974aaea 100644 --- a/test/parallel/test-repl-sigint.js +++ b/test/parallel/test-repl-sigint.js @@ -34,18 +34,17 @@ child.stdout.once('data', common.mustCall(() => { process.kill(child.pid, 'SIGINT'); child.stdout.once('data', common.mustCall(() => { // Make sure state from before the interruption is still available. - child.stdin.end('a*2*3*7\r\n'); + child.stdin.end('a*2*3*7\n'); })); })); child.stdin.write('a = 1001;' + 'process.kill(+process.env.REPL_TEST_PPID, "SIGUSR2");' + - 'while(true){}\r\n'); + 'while(true){}\n'); })); child.on('close', function(code) { assert.strictEqual(code, 0); - assert.notStrictEqual(stdout.indexOf('Script execution interrupted.' + - '\r\n'), -1); - assert.notStrictEqual(stdout.indexOf('42042\r\n'), -1); + assert.notStrictEqual(stdout.indexOf('Script execution interrupted.\n'), -1); + assert.notStrictEqual(stdout.indexOf('42042\n'), -1); }); |