Browse Source

test: close debug client in test-debugger-client

Killing the debuggee without first closing the socket can result
in an ECONNRESET error.
v0.10.25-release
Alexis Campailla 11 years ago
committed by Timothy J Fontaine
parent
commit
1b74892807
  1. 7
      test/simple/test-debugger-client.js

7
test/simple/test-debugger-client.js

@ -197,12 +197,17 @@ function doTest(cb, done) {
connectCount++;
console.log('ready!');
cb(c, function() {
console.error('>>> killing node process %d\n\n', nodeProcess.pid);
c.end();
c.on('end', function() {
console.error(
'>>> killing node process %d\n\n',
nodeProcess.pid);
nodeProcess.kill();
done();
});
});
});
});
}
});
}

Loading…
Cancel
Save