it('Verify that is possible to invoke the execute() method without input', async () => {
const result = await pool.execute()
- expect(result).toBe(false)
+ expect(result).toStrictEqual({ ok: 1 })
})
it("Verify that 'busy' event is emitted", async () => {
'./tests/worker-files/cluster/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()
})