crypto.randomBytes(1, noop);
-try {
- fs.unlinkSync(common.PIPE);
-} catch(e) { }
+common.refreshTmpDir();
net.createServer(function(c) {
c.end();
});
} else {
+ common.refreshTmpDir();
var cp = fork(common.fixturesDir + '/listen-on-socket-and-exit.js',
{ stdio: 'inherit' });
});
});
+common.refreshTmpDir();
+
server.listen(common.PIPE, function() {
var req = http.request({
socketPath: common.PIPE,
assert(gotDomainError);
});
+common.refreshTmpDir();
+
// first fire up a simple HTTP server
var server = http.createServer(function(req, res) {
res.writeHead(200);
res.end();
});
+common.refreshTmpDir();
+
server.listen(common.PIPE, function() {
var options = {
}
/* 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');
} 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() {
var assert = require('assert');
common.globalCheck = false;
+common.refreshTmpDir();
var net = require('net'),
repl = require('repl'),
cert: fs.readFileSync(common.fixturesDir + '/keys/agent1-cert.pem')
};
+common.refreshTmpDir();
+
var server = tls.Server(options, function(socket) {
++serverConnected;
server.close();
assert(false); // should not be called
});
+common.refreshTmpDir();
+
server.listen(common.PIPE, function() {
address = server.address();
server.close();
var assert = require('assert');
var net = require('net');
+common.refreshTmpDir();
+
function test(clazz, cb) {
var have_ping = false;
var have_pong = false;
var net = require('net');
var closed = false;
+common.refreshTmpDir();
+
var s = net.Server();
s.listen(common.PIPE);
s.unref();