From 05b3f88064a3dc85f892d0ff07dbca4f90437809 Mon Sep 17 00:00:00 2001 From: Ben Noordhuis Date: Fri, 17 Aug 2012 14:03:01 +0200 Subject: [PATCH] test: use common.PORT in simple/test-regress-GH-1697 --- test/simple/test-regress-GH-1697.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/simple/test-regress-GH-1697.js b/test/simple/test-regress-GH-1697.js index 82aed3ec8a..fdf2c42e9e 100644 --- a/test/simple/test-regress-GH-1697.js +++ b/test/simple/test-regress-GH-1697.js @@ -37,7 +37,7 @@ if (process.argv[2] === 'server') { }); }); - server.listen(1234, '127.0.0.1', function() { + server.listen(common.PORT, '127.0.0.1', function() { console.log('Server running.'); }); @@ -49,7 +49,7 @@ if (process.argv[2] === 'server') { serverProcess.stderr.pipe(process.stdout); serverProcess.stdout.once('data', function() { - var client = net.createConnection(1234, '127.0.0.1'); + var client = net.createConnection(common.PORT, '127.0.0.1'); client.on('connect', function() { var alot = new Buffer(1024), alittle = new Buffer(1);