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
Ben Noordhuis de88255b0f Revert "lib,src: add unix socket getsockname/getpeername"
This reverts commit 6cd0e2664b.
This reverts commit 7a999a1376.
This reverts commit f337595441.

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>
2015-08-28 00:14:13 +02:00

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