test: net-GH-5504 child env needs NODE_COMMON_PORT

This commit is contained in:
Timothy J Fontaine 2013-08-21 10:51:42 -07:00
parent cdf2a661f2
commit 41f55dc59b

View File

@ -73,7 +73,12 @@ function parent() {
var serverExited = false;
var clientExited = false;
var serverListened = false;
var opt = { env: { NODE_DEBUG: 'net' } };
var opt = {
env: {
NODE_DEBUG: 'net',
NODE_COMMON_PORT: process.env.NODE_COMMON_PORT,
}
};
process.on('exit', function() {
assert(serverExited);