| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 26c5bd8 commit ab86143
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -22,6 +22,7 @@ | |||
| 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); | |
| Back | FazBrowse Home | New Git URL |
0 commit comments