mirror of
https://github.com/nodejs/node.git
synced 2024-12-01 16:10:02 +01:00
de88255b0f
This reverts commit6cd0e2664b
. This reverts commit7a999a1376
. This reverts commitf337595441
. It turns out that on Windows, uv_pipe_getsockname() is a no-op for client sockets. It slipped through testing because of a CI snafu. PR-URL: https://github.com/nodejs/node/pull/2584 Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com>
20 lines
385 B
JavaScript
20 lines
385 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
|
|
});
|
|
|
|
server.listen(common.PIPE, function() {
|
|
address = server.address();
|
|
server.close();
|
|
});
|
|
|
|
process.on('exit', function() {
|
|
assert.equal(address, common.PIPE);
|
|
});
|