diff --git a/test/IMQService.ts b/test/IMQService.ts index e27e539..d7b0587 100644 --- a/test/IMQService.ts +++ b/test/IMQService.ts @@ -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 () => { (cluster).isMaster = false; (++counter == 1) && await service.start(); - }); + }) as any); await service.start();