Skip to content

Commit 7b5a01a

Browse files
arturgawliklpinca
andauthored
Update test/parallel/test-net-socket-not-duplicates-destroy-soon-listeners.js
Co-authored-by: Luigi Pinca <[email protected]>
1 parent f703403 commit 7b5a01a

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

test/parallel/test-net-socket-not-duplicates-destroy-soon-listeners.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,6 @@ const assert = require('assert');
55
const { Socket } = require('net');
66

77
const socket = new Socket();
8-
socket.on('error', () => {
9-
// noop
10-
});
11-
socket.connect({ host: addresses.INVALID_HOST, port: 1234 });
128
socket.destroySoon();
139
socket.destroySoon();
1410
assert.strictEqual(socket.listeners('finish').length, 1);

0 commit comments

Comments
 (0)