test: cleanup worker functions return
[poolifier.git] / tests / pools / cluster / dynamic.test.js
index 753f59af309dfd1e83053f0e1496682f118bb7dd..bd405a771b1d85f64637d3117de45be7dfabeba8 100644 (file)
@@ -77,7 +77,7 @@ describe('Dynamic cluster pool test suite', () => {
       './tests/worker-files/cluster/testWorker.js'
     )
     const result = await pool1.execute()
-    expect(result).toBe(false)
+    expect(result).toStrictEqual({ ok: 1 })
     // We need to clean up the resources after our test
     await pool1.destroy()
   })