Skip to content

Commit 58e07ef

Browse files
arturgawliklpinca
authored andcommitted
Update test/parallel/test-net-socket-not-duplicates-destroy-soon-listeners.js
Co-authored-by: Luigi Pinca <luigipinca@gmail.com>
1 parent ff6cde7 commit 58e07ef

1 file changed

Lines changed: 0 additions & 4 deletions

File tree

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)