test: fix flaky test-dgram-pingpong
authorRich Trott <rtrott@gmail.com>
Fri, 5 Feb 2016 00:27:15 +0000 (16:27 -0800)
committerMyles Borins <mborins@us.ibm.com>
Wed, 2 Mar 2016 22:01:11 +0000 (14:01 -0800)
commite3aa9b65bf7cb351fe2d943c1d9d16ba0e62ac86
treeb439640bd0c24b85e0fcf2ba23cf69eef96269bc
parentc3c9dbee75eb6e7c1cb7df32a4fd8a55ba1f1e77
test: fix flaky test-dgram-pingpong

There is no guarantee UDP messages will be received. Accommodate the
occasional dropped message.

This is a functionality test, not a performance benchmark. Speed up the
test by not sending 1500 messages across three ports.

Fixes: https://github.com/nodejs/node/issues/4526
PR-URL: https://github.com/nodejs/node/pull/5125
Reviewed-By: Brian White <mscdex@mscdex.net>
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: James M Snell <jasnell@gmail.com>
test/sequential/sequential.status
test/sequential/test-dgram-pingpong.js