File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change 2222'use strict';
2323const common = require('../common');
2424const fixtures = require('../common/fixtures');
25+ const tmpdir = require('../common/tmpdir');
2526const assert = require('assert');
2627const net = require('net');
2728const repl = require('repl');
@@ -823,6 +824,8 @@ function startUnixRepl() {
823824 resolveReplServer(replServer);
824825 }));
825826
827+ tmpdir.refresh();
828+
826829 server.listen(common.PIPE, common.mustCall(() => {
827830 const client = net.createConnection(common.PIPE);
828831
@@ -852,7 +855,7 @@ function event(ee, expected) {
852855 const data = inspect(expected, { compact: false });
853856 const msg = `The REPL did not reply as expected for:\n\n${data}`;
854857 reject(new Error(msg));
855- }, 500);
858+ }, common.platformTimeout( 500) );
856859 ee.once('data', common.mustCall((...args) => {
857860 clearTimeout(timeout);
858861 resolve(...args);
You can’t perform that action at this time.
0 commit comments