expect(poolReady).toBe(1)
})
- it("Verify that 'busy' event is emitted", async () => {
+ it("Verify that 'busy' event is emitted", () => {
let poolBusy = 0
pool.emitter.on(PoolEvents.busy, () => ++poolBusy)
for (let i = 0; i < numberOfWorkers * 2; i++) {