better err handling in tests

This commit is contained in:
Brandon Nozaki Miller 2016-01-10 04:37:52 -08:00
parent 32cfa88d9b
commit f176a01d1b
2 changed files with 4 additions and 0 deletions

View file

@ -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++;
}
);

View file

@ -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();
}
);
}