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