Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: pipe requires tmpdir #3231

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions test/parallel/test-async-wrap-check-providers.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,7 @@ new (process.binding('tty_wrap').TTY)();

crypto.randomBytes(1, noop);

try {
fs.unlinkSync(common.PIPE);
} catch(e) { }
common.refreshTmpDir();

net.createServer(function(c) {
c.end();
Expand Down
1 change: 1 addition & 0 deletions test/parallel/test-cluster-eaccess.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ if (cluster.isMaster) {
});

} else {
common.refreshTmpDir();
var cp = fork(common.fixturesDir + '/listen-on-socket-and-exit.js',
{ stdio: 'inherit' });

Expand Down
2 changes: 2 additions & 0 deletions test/parallel/test-http-client-pipe-end.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ var server = http.createServer(function(req, res) {
});
});

common.refreshTmpDir();

server.listen(common.PIPE, function() {
var req = http.request({
socketPath: common.PIPE,
Expand Down
2 changes: 2 additions & 0 deletions test/parallel/test-http-client-response-domain.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ process.on('exit', function() {
assert(gotDomainError);
});

common.refreshTmpDir();

// first fire up a simple HTTP server
var server = http.createServer(function(req, res) {
res.writeHead(200);
Expand Down
2 changes: 2 additions & 0 deletions test/parallel/test-http-unix-socket.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ var server = http.createServer(function(req, res) {
res.end();
});

common.refreshTmpDir();

server.listen(common.PIPE, function() {

var options = {
Expand Down
2 changes: 1 addition & 1 deletion test/parallel/test-net-pingpong.js
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ function pingPongTest(port, host) {
}

/* All are run at once, so run on different ports */
console.log(common.PIPE);
common.refreshTmpDir();
pingPongTest(common.PIPE);
pingPongTest(common.PORT);
pingPongTest(common.PORT + 1, 'localhost');
Expand Down
1 change: 1 addition & 0 deletions test/parallel/test-net-pipe-connect-errors.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ if (common.isWindows) {
} else {
// use common.PIPE to ensure we stay within POSIX socket path length
// restrictions, even on CI
common.refreshTmpDir();
emptyTxt = common.PIPE + '.txt';

function cleanup() {
Expand Down
1 change: 1 addition & 0 deletions test/parallel/test-repl.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ var common = require('../common');
var assert = require('assert');

common.globalCheck = false;
common.refreshTmpDir();

var net = require('net'),
repl = require('repl'),
Expand Down
2 changes: 2 additions & 0 deletions test/parallel/test-tls-connect-pipe.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ var options = {
cert: fs.readFileSync(common.fixturesDir + '/keys/agent1-cert.pem')
};

common.refreshTmpDir();

var server = tls.Server(options, function(socket) {
++serverConnected;
server.close();
Expand Down
2 changes: 2 additions & 0 deletions test/sequential/test-pipe-address.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ var server = net.createServer(function() {
assert(false); // should not be called
});

common.refreshTmpDir();

server.listen(common.PIPE, function() {
address = server.address();
server.close();
Expand Down
2 changes: 2 additions & 0 deletions test/sequential/test-pipe-stream.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ var common = require('../common');
var assert = require('assert');
var net = require('net');

common.refreshTmpDir();

function test(clazz, cb) {
var have_ping = false;
var have_pong = false;
Expand Down
2 changes: 2 additions & 0 deletions test/sequential/test-pipe-unref.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ var assert = require('assert');
var net = require('net');
var closed = false;

common.refreshTmpDir();

var s = net.Server();
s.listen(common.PIPE);
s.unref();
Expand Down