From 426cbedb44e1dfff645b9f275f7b27a389dc86b0 Mon Sep 17 00:00:00 2001 From: Ben Noordhuis Date: Sat, 2 Mar 2013 23:04:05 +0100 Subject: [PATCH] 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. --- test/simple/test-dgram-pingpong.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/simple/test-dgram-pingpong.js b/test/simple/test-dgram-pingpong.js index 18b39b5aa6..2231058d03 100644 --- a/test/simple/test-dgram-pingpong.js +++ b/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() {