diff options
| -rw-r--r-- | test/ipc.spec.js | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/test/ipc.spec.js b/test/ipc.spec.js index 07421ce839..43a17b4911 100644 --- a/test/ipc.spec.js +++ b/test/ipc.spec.js @@ -58,6 +58,17 @@ describe('The IPC server', () => { return Promise.all([message, decoy]); }); + + it('should timeout if no response is returned', () => { + const { ipc } = setupIpc(); + + ipc.setSendTimeout(1); + return ipc.send('a message') + .catch((e) => { + expect(e.name).to.equal('TimeOutError'); + expect(e.message).to.contain('timed out'); + }); + }); }); function mockWebsocket() { |
