Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Mikhus committed Nov 22, 2018
1 parent 9148490 commit 02976b4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/IMQService.ts
Expand Up @@ -91,10 +91,10 @@ describe('IMQService', () => {
});

let counter = 0;
const spy = sinon.stub(cluster, 'fork').callsFake(async () => {
const spy = sinon.stub(cluster, 'fork').callsFake((async () => {
(<any>cluster).isMaster = false;
(++counter == 1) && await service.start();
});
}) as any);

await service.start();

Expand Down

0 comments on commit 02976b4

Please sign in to comment.