summaryrefslogtreecommitdiff
path: root/test/parallel/test-net-connect-immediate-destroy.js
blob: 37dc4b2d9a23912897764fa8ea59e51b9a125ee9 (plain)
1
2
3
4
5
6
7
8
'use strict';
const common = require('../common');
const assert = require('assert');
const net = require('net');

const socket = net.connect(common.PORT, common.localhostIPv4, assert.fail);
socket.on('error', assert.fail);
socket.destroy();