File tree 1 file changed +4
-1
lines changed
1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change 22
22
'use strict' ;
23
23
const common = require ( '../common' ) ;
24
24
const fixtures = require ( '../common/fixtures' ) ;
25
+ const tmpdir = require ( '../common/tmpdir' ) ;
25
26
const assert = require ( 'assert' ) ;
26
27
const net = require ( 'net' ) ;
27
28
const repl = require ( 'repl' ) ;
@@ -823,6 +824,8 @@ function startUnixRepl() {
823
824
resolveReplServer ( replServer ) ;
824
825
} ) ) ;
825
826
827
+ tmpdir . refresh ( ) ;
828
+
826
829
server . listen ( common . PIPE , common . mustCall ( ( ) => {
827
830
const client = net . createConnection ( common . PIPE ) ;
828
831
@@ -852,7 +855,7 @@ function event(ee, expected) {
852
855
const data = inspect ( expected , { compact : false } ) ;
853
856
const msg = `The REPL did not reply as expected for:\n\n${ data } ` ;
854
857
reject ( new Error ( msg ) ) ;
855
- } , 500 ) ;
858
+ } , common . platformTimeout ( 500 ) ) ;
856
859
ee . once ( 'data' , common . mustCall ( ( ...args ) => {
857
860
clearTimeout ( timeout ) ;
858
861
resolve ( ...args ) ;
You can’t perform that action at this time.
0 commit comments