better err handling in tests
This commit is contained in:
parent
32cfa88d9b
commit
f176a01d1b
2 changed files with 4 additions and 0 deletions
|
@ -28,6 +28,7 @@ describe('TCP Socket verification of client',
|
|||
expect(ipc.of.tcpFakeServer.retriesRemaining).toBe(
|
||||
ipc.config.maxRetries-errorCount
|
||||
);
|
||||
expect(err).toBeDefined();
|
||||
}
|
||||
);
|
||||
}
|
||||
|
@ -65,6 +66,7 @@ describe('TCP Socket verification of client',
|
|||
'error',
|
||||
function gotError(err){
|
||||
expect(ipc.of.tcpFakeServer.retriesRemaining).toBe(ipc.config.maxRetries);
|
||||
expect(err).toBeDefined();
|
||||
errorCount++;
|
||||
}
|
||||
);
|
||||
|
|
|
@ -28,6 +28,7 @@ describe('Test Cases for Unix client: ',
|
|||
expect(ipc.of.fakeworld.retriesRemaining).toBe(
|
||||
ipc.config.maxRetries-errorCount
|
||||
);
|
||||
expect(err).toBeDefined();
|
||||
}
|
||||
);
|
||||
}
|
||||
|
@ -66,6 +67,7 @@ describe('Test Cases for Unix client: ',
|
|||
function gotError(err){
|
||||
expect(ipc.of.fakeworld.retriesRemaining).toBe(ipc.config.maxRetries);
|
||||
errorCount++;
|
||||
expect(err).toBeDefined();
|
||||
}
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue