test: use common.PORT in simple/test-net-GH-5504
This commit is contained in:
parent
78f709d0d4
commit
f548433195
@ -51,7 +51,7 @@ function server() {
|
|||||||
console.error('_socketEnd');
|
console.error('_socketEnd');
|
||||||
});
|
});
|
||||||
socket.write(content);
|
socket.write(content);
|
||||||
}).listen(3000, function() {
|
}).listen(common.PORT, function() {
|
||||||
console.log('listening');
|
console.log('listening');
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@ -60,7 +60,7 @@ function client() {
|
|||||||
var net = require('net');
|
var net = require('net');
|
||||||
var client = net.connect({
|
var client = net.connect({
|
||||||
host: 'localhost',
|
host: 'localhost',
|
||||||
port: 3000
|
port: common.PORT
|
||||||
}, function() {
|
}, function() {
|
||||||
client.destroy();
|
client.destroy();
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user