Browse Source

test: make simple/test-dgram-pingpong respect PORT

Don't use hard-coded port numbers, use common.PORT instead.

Should fix the occasional Jenkins failure; the builds run in parallel.
v0.8.22-release
Ben Noordhuis 12 years ago
parent
commit
426cbedb44
  1. 6
      test/simple/test-dgram-pingpong.js

6
test/simple/test-dgram-pingpong.js

@ -102,9 +102,9 @@ function pingPongTest(port, host) {
}
// All are run at once, so run on different ports
pingPongTest(20989, 'localhost');
pingPongTest(20990, 'localhost');
pingPongTest(20988);
pingPongTest(common.PORT + 0, 'localhost');
pingPongTest(common.PORT + 1, 'localhost');
pingPongTest(common.PORT + 2);
//pingPongTest('/tmp/pingpong.sock');
process.on('exit', function() {

Loading…
Cancel
Save