Skip to content

Commit 2c056a4

Browse files
TrottMyles Borins
authored and
Myles Borins
committed
test: remove timer in test-dgram-send-empty-array
The timer is not necessary. The test will timeout via the test harness if the test fails. This should resolve spurious CI failures. PR-URL: #9361 Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Santiago Gimeno <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Evan Lucas <[email protected]> Reviewed-By: Luigi Pinca <[email protected]>
1 parent 7b60288 commit 2c056a4

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

test/parallel/test-dgram-send-empty-array.js

-5
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,9 @@ if (common.isOSX) {
1111

1212
const client = dgram.createSocket('udp4');
1313

14-
const timer = setTimeout(function() {
15-
throw new Error('Timeout');
16-
}, common.platformTimeout(200));
17-
1814
client.on('message', common.mustCall(function onMessage(buf, info) {
1915
const expected = Buffer.alloc(0);
2016
assert.ok(buf.equals(expected), 'message was received correctly');
21-
clearTimeout(timer);
2217
client.close();
2318
}));
2419

0 commit comments

Comments
 (0)