summaryrefslogtreecommitdiff
path: root/test/sequential/test-pipe-address.js
blob: 36488d80f789af351712eebf4ac90ba030f10c86 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
'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
});

common.refreshTmpDir();

server.listen(common.PIPE, function() {
  address = server.address();
  server.close();
});

process.on('exit', function() {
  assert.equal(address, common.PIPE);
});