test: add multi tasks worker
[poolifier.git] / tests / pools / cluster / dynamic.test.js
index e67d92bdb9849d05c09801a865e548a8208a4470..6d2bccadc1f2ae9bce01904443bb475b56ccb6a6 100644 (file)
@@ -19,11 +19,11 @@ describe('Dynamic cluster pool test suite', () => {
     let result = await pool.execute({
       function: WorkerFunctions.fibonacci
     })
-    expect(result).toBe(false)
+    expect(result).toBe(121393)
     result = await pool.execute({
       function: WorkerFunctions.factorial
     })
-    expect(result).toBe(false)
+    expect(result).toBe(9.33262154439441e157)
   })
 
   it('Verify that new workers are created when required, max size is not exceeded and that after a while new workers will die', async () => {