| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 40a159e commit 7a5ae34
12 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -47,9 +47,7 @@ new (process.binding('tty_wrap').TTY)(); | |||
| 47 | 47 | ||
| 48 | 48 | crypto.randomBytes(1, noop); | |
| 49 | 49 | ||
| 50 | - try { | ||
| 51 | - fs.unlinkSync(common.PIPE); | ||
| 52 | - } catch(e) { } | ||
| 50 | + common.refreshTmpDir(); | ||
| 53 | 51 | ||
| 54 | 52 | net.createServer(function(c) { | |
| 55 | 53 | c.end(); | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -36,6 +36,7 @@ if (cluster.isMaster) { | |||
| 36 | 36 | }); | |
| 37 | 37 | ||
| 38 | 38 | } else { | |
| 39 | + common.refreshTmpDir(); | ||
| 39 | 40 | var cp = fork(common.fixturesDir + '/listen-on-socket-and-exit.js', | |
| 40 | 41 | { stdio: 'inherit' }); | |
| 41 | 42 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -14,6 +14,8 @@ var server = http.createServer(function(req, res) { | |||
| 14 | 14 | }); | |
| 15 | 15 | }); | |
| 16 | 16 | ||
| 17 | + common.refreshTmpDir(); | ||
| 18 | + | ||
| 17 | 19 | server.listen(common.PIPE, function() { | |
| 18 | 20 | var req = http.request({ | |
| 19 | 21 | socketPath: common.PIPE, | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -11,6 +11,8 @@ process.on('exit', function() { | |||
| 11 | 11 | assert(gotDomainError); | |
| 12 | 12 | }); | |
| 13 | 13 | ||
| 14 | + common.refreshTmpDir(); | ||
| 15 | + | ||
| 14 | 16 | // first fire up a simple HTTP server | |
| 15 | 17 | var server = http.createServer(function(req, res) { | |
| 16 | 18 | res.writeHead(200); | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -18,6 +18,8 @@ var server = http.createServer(function(req, res) { | |||
| 18 | 18 | res.end(); | |
| 19 | 19 | }); | |
| 20 | 20 | ||
| 21 | + common.refreshTmpDir(); | ||
| 22 | + | ||
| 21 | 23 | server.listen(common.PIPE, function() { | |
| 22 | 24 | ||
| 23 | 25 | var options = { | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -106,7 +106,7 @@ function pingPongTest(port, host) { | |||
| 106 | 106 | } | |
| 107 | 107 | ||
| 108 | 108 | /* All are run at once, so run on different ports */ | |
| 109 | - console.log(common.PIPE); | ||
| 109 | + common.refreshTmpDir(); | ||
| 110 | 110 | pingPongTest(common.PIPE); | |
| 111 | 111 | pingPongTest(common.PORT); | |
| 112 | 112 | pingPongTest(common.PORT + 1, 'localhost'); | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -21,6 +21,7 @@ if (common.isWindows) { | |||
| 21 | 21 | } else { | |
| 22 | 22 | // use common.PIPE to ensure we stay within POSIX socket path length | |
| 23 | 23 | // restrictions, even on CI | |
| 24 | + common.refreshTmpDir(); | ||
| 24 | 25 | emptyTxt = common.PIPE + '.txt'; | |
| 25 | 26 | ||
| 26 | 27 | function cleanup() { | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -3,6 +3,7 @@ var common = require('../common'); | |||
| 3 | 3 | var assert = require('assert'); | |
| 4 | 4 | ||
| 5 | 5 | common.globalCheck = false; | |
| 6 | + common.refreshTmpDir(); | ||
| 6 | 7 | ||
| 7 | 8 | var net = require('net'), | |
| 8 | 9 | repl = require('repl'), | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -18,6 +18,8 @@ var options = { | |||
| 18 | 18 | cert: fs.readFileSync(common.fixturesDir + '/keys/agent1-cert.pem') | |
| 19 | 19 | }; | |
| 20 | 20 | ||
| 21 | + common.refreshTmpDir(); | ||
| 22 | + | ||
| 21 | 23 | var server = tls.Server(options, function(socket) { | |
| 22 | 24 | ++serverConnected; | |
| 23 | 25 | server.close(); | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -9,6 +9,8 @@ var server = net.createServer(function() { | |||
| 9 | 9 | assert(false); // should not be called | |
| 10 | 10 | }); | |
| 11 | 11 | ||
| 12 | + common.refreshTmpDir(); | ||
| 13 | + | ||
| 12 | 14 | server.listen(common.PIPE, function() { | |
| 13 | 15 | address = server.address(); | |
| 14 | 16 | server.close(); | |
| Back | FazBrowse Home | New Git URL |
0 commit comments