0
0
mirror of https://github.com/nodejs/node.git synced 2024-12-01 16:10:02 +01:00
nodejs/test/sequential/test-pipe-address.js

19 lines
371 B
JavaScript
Raw Normal View History

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);
});