X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=tests%2Fpools%2Fthread%2Ffixed.test.js;h=4c2c6952944902647177af13756cec63e6f04b0f;hb=3e8611a873e5bc96a27b0ff0d6a54199d629384e;hp=e3ee0f652dafe8a4401b95feb82f6c80c34751e6;hpb=94407def0f4cd4356982ce5144a6108aec9a1ff9;p=poolifier.git diff --git a/tests/pools/thread/fixed.test.js b/tests/pools/thread/fixed.test.js index e3ee0f65..4c2c6952 100644 --- a/tests/pools/thread/fixed.test.js +++ b/tests/pools/thread/fixed.test.js @@ -88,7 +88,7 @@ describe('Fixed thread pool test suite', () => { ) let poolReady = 0 pool1.emitter.on(PoolEvents.ready, () => ++poolReady) - await waitPoolEvents(pool1, 'ready', 1) + await waitPoolEvents(pool1, PoolEvents.ready, 1) expect(poolReady).toBe(1) })