fix: fix worker function type definition and validation
[poolifier.git] / tests / pools / cluster / fixed.test.js
index c28b8021db11f0342ba3130146cc0e54d2b66eb5..4aaa57c750920944e6cf2c4ed02f43104cb12fa0 100644 (file)
@@ -206,6 +206,6 @@ describe('Fixed cluster pool test suite', () => {
     expect(
       () =>
         new FixedClusterPool(0, './tests/worker-files/cluster/testWorker.js')
-    ).toThrowError(new Error('Cannot instantiate a fixed pool with no worker'))
+    ).toThrowError('Cannot instantiate a fixed pool with no worker')
   })
 })