Welcome to mirror list, hosted at ThFree Co, Russian Federation.

test-net-connect-paused-connection.js « parallel « test - github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 06e51f843fefadde27f1228ee1d3bbbf41516b77 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
var assert = require('assert');
var common = require('../common');

var net = require('net');

net.createServer(function(conn) {
  conn.unref();
}).listen(common.PORT).unref();

net.connect(common.PORT, 'localhost').pause();

setTimeout(function() {
  assert.fail('expected to exit');
}, 1000).unref();