summaryrefslogtreecommitdiff
path: root/test/parallel/test-dgram-send-empty-array.js
diff options
context:
space:
mode:
authorRich Trott <rtrott@gmail.com>2016-10-29 15:39:02 -0700
committerRich Trott <rtrott@gmail.com>2016-11-01 22:03:47 -0700
commit968fc72ad163cd635f6f33ad598048e327a7a791 (patch)
treea93320f4b5ca8e5d955cf6f6d781b230c9e7e054 /test/parallel/test-dgram-send-empty-array.js
parent2dcb7f3826a360f7cac79a58833dc4c037f67e27 (diff)
downloadandroid-node-v8-968fc72ad163cd635f6f33ad598048e327a7a791.tar.gz
android-node-v8-968fc72ad163cd635f6f33ad598048e327a7a791.tar.bz2
android-node-v8-968fc72ad163cd635f6f33ad598048e327a7a791.zip
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: https://github.com/nodejs/node/pull/9361 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Santiago Gimeno <santiago.gimeno@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Evan Lucas <evanlucas@me.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Diffstat (limited to 'test/parallel/test-dgram-send-empty-array.js')
-rw-r--r--test/parallel/test-dgram-send-empty-array.js5
1 files changed, 0 insertions, 5 deletions
diff --git a/test/parallel/test-dgram-send-empty-array.js b/test/parallel/test-dgram-send-empty-array.js
index c5050a7d54..f9de345f11 100644
--- a/test/parallel/test-dgram-send-empty-array.js
+++ b/test/parallel/test-dgram-send-empty-array.js
@@ -11,14 +11,9 @@ if (common.isOSX) {
const client = dgram.createSocket('udp4');
-const timer = setTimeout(function() {
- throw new Error('Timeout');
-}, common.platformTimeout(200));
-
client.on('message', common.mustCall(function onMessage(buf, info) {
const expected = Buffer.alloc(0);
assert.ok(buf.equals(expected), 'message was received correctly');
- clearTimeout(timer);
client.close();
}));