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. 11
      test/simple/test-debugger-client.js

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

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

Loading…
Cancel
Save