build(deps): bump poolifier
[poolifier.git] / tests / pools / thread / fixed.test.mjs
index 3969c83ad7464c728d7df33dd092673c16384734..214913d4b5f89e7b92a33fae5eb912852a80eb1f 100644 (file)
@@ -338,9 +338,9 @@ describe('Fixed thread pool test suite', () => {
     await pool.destroy()
   })
 
-  it('Verify that a pool with zero worker fails', async () => {
+  it('Verify that a pool with zero worker fails', () => {
     expect(
       () => new FixedThreadPool(0, './tests/worker-files/thread/testWorker.mjs')
-    ).toThrowError('Cannot instantiate a fixed pool with zero worker')
+    ).toThrow('Cannot instantiate a fixed pool with zero worker')
   })
 })