diff --git a/test/parallel/test-repl-multiline-navigation.js b/test/parallel/test-repl-multiline-navigation.js index 3e5a40186b3062..7bcef887597595 100644 --- a/test/parallel/test-repl-multiline-navigation.js +++ b/test/parallel/test-repl-multiline-navigation.js @@ -81,6 +81,8 @@ tmpdir.refresh(); r.input.run([{ name: 'down' }]); assert.strictEqual(r.cursor, 27); + + r.close(); }); repl.createInternalRepl( @@ -142,6 +144,8 @@ tmpdir.refresh(); r.input.run([{ name: 'down' }]); assert.strictEqual(r.cursor, 55); + + r.close(); }); repl.createInternalRepl( @@ -185,6 +189,8 @@ tmpdir.refresh(); r.input.run([{ name: 'up' }]); // Check that the line is properly displayed assert.strictEqual(r.line, 'let lineWithMistake = `I have some\nproblem with my syntax`'); + + r.close(); }); repl.createInternalRepl( @@ -232,6 +238,8 @@ tmpdir.refresh(); ' 123, 123, 123, 123, 123, 123, 123, 123, 123, 123, 123,\n' + ' 123\n' + ']\n'), true); + + r.close(); }); repl.createInternalRepl(