mirror of https://github.com/nodejs/node.git
22 lines
410 B
JavaScript
22 lines
410 B
JavaScript
'use strict';
|
|
var common = require('../common');
|
|
var assert = require('assert');
|
|
var net = require('net');
|
|
|
|
var address = null;
|
|
|
|
var server = net.createServer(function() {
|
|
assert(false); // should not be called
|
|
});
|
|
|
|
common.refreshTmpDir();
|
|
|
|
server.listen(common.PIPE, function() {
|
|
address = server.address();
|
|
server.close();
|
|
});
|
|
|
|
process.on('exit', function() {
|
|
assert.equal(address, common.PIPE);
|
|
});
|