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.
This commit is contained in:
Ben Noordhuis 2013-03-02 23:04:05 +01:00
parent 0b70a14abf
commit 426cbedb44

View File

@ -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() {