Merge pull request #747 from poolifier/multiple-functions
[poolifier.git] / tests / pools / thread / fixed.test.js
index 9187b817d1bf749ae956d91a8afcb9436a48b3ab..09c53ea49a6afd86338679684d16e904fb2d4f75 100644 (file)
@@ -65,11 +65,11 @@ describe('Fixed thread 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 is possible to invoke the execute() method without input', async () => {