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

13 lines
326 B
JavaScript
Raw Normal View History

'use strict';
const common = require('../common');
const assert = require('assert');
const net = require('net');
const server = net.createServer(common.mustNotCall());
common.refreshTmpDir();
server.listen(common.PIPE, common.mustCall(function() {
assert.strictEqual(server.address(), common.PIPE);
server.close();
}));