mirror of
https://github.com/nodejs/node.git
synced 2024-12-01 16:10:02 +01:00
19 lines
371 B
JavaScript
19 lines
371 B
JavaScript
|
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
|
||
|
});
|
||
|
|
||
|
server.listen(common.PIPE, function() {
|
||
|
address = server.address();
|
||
|
server.close();
|
||
|
});
|
||
|
|
||
|
process.on('exit', function() {
|
||
|
assert.equal(address, common.PIPE);
|
||
|
});
|