test: add test for backPressure event emission
[poolifier.git] / tests / pools / thread / fixed.test.js
index e3ee0f652dafe8a4401b95feb82f6c80c34751e6..4c2c6952944902647177af13756cec63e6f04b0f 100644 (file)
@@ -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)
   })