test socket cleanup fixes #30
This commit is contained in:
parent
e1119968d4
commit
f0068bbdc4
1 changed files with 5 additions and 2 deletions
|
@ -80,7 +80,6 @@ ipc.server.on(
|
||||||
'end.test',
|
'end.test',
|
||||||
function(data,socket){
|
function(data,socket){
|
||||||
ipc.log(socket.id.notice, 'completed'.debug);
|
ipc.log(socket.id.notice, 'completed'.debug);
|
||||||
|
|
||||||
clearTimeout(
|
clearTimeout(
|
||||||
tests[socket.id].delay
|
tests[socket.id].delay
|
||||||
);
|
);
|
||||||
|
@ -162,6 +161,10 @@ function checkComplete(){
|
||||||
ipc.log('####################################\n\n FAILS\n\n####################################\n\n'.warn,fails.join('\n').warn,'\n\n');
|
ipc.log('####################################\n\n FAILS\n\n####################################\n\n'.warn,fails.join('\n').warn,'\n\n');
|
||||||
ipc.log('####################################\n\n PASS/FAIL COUNT\n\n####################################\n\n'.data,(passes.length+' ').good,(fails.length+' ').warn,'\n\n');
|
ipc.log('####################################\n\n PASS/FAIL COUNT\n\n####################################\n\n'.data,(passes.length+' ').good,(fails.length+' ').warn,'\n\n');
|
||||||
|
|
||||||
|
fs.unlink('/tmp/app.testHarness');
|
||||||
|
fs.unlink('/tmp/app.stopRetrieing-unix-socket-test');
|
||||||
|
fs.unlink('/tmp/app.unix-socket-test');
|
||||||
|
|
||||||
if(!debug)
|
if(!debug)
|
||||||
process.exit(0);
|
process.exit(0);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue