test: use common.PORT in simple/test-regress-GH-1697

pull/24503/head
Ben Noordhuis 2012-08-17 14:03:01 +02:00
parent 28d30346f4
commit 05b3f88064
1 changed files with 2 additions and 2 deletions

View File

@ -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);