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

const socket = new net.Socket();
socket.on('close', common.mustCall());
socket.destroy();