X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=tests%2Fpools%2Fcluster%2Ffixed.test.js;h=7048bb7937946108777aa8faa65fe569031bc98e;hb=8620fb25c8b80fc7ef55d76e19781181571c5502;hp=04467620f7d50c61b8813af25ecd011b6d145e8e;hpb=3c5c6f5a77726de248ecb66086a9815c7aa0f550;p=poolifier.git diff --git a/tests/pools/cluster/fixed.test.js b/tests/pools/cluster/fixed.test.js index 04467620..7048bb79 100644 --- a/tests/pools/cluster/fixed.test.js +++ b/tests/pools/cluster/fixed.test.js @@ -74,7 +74,7 @@ describe('Fixed cluster pool test suite', () => { for (let i = 0; i < numberOfWorkers * 2; i++) { promises.push(pool.execute({ test: 'test' })) } - expect(poolBusy).toEqual(numberOfWorkers) + expect(poolBusy).toBe(numberOfWorkers) }) it('Verify that is possible to have a worker that return undefined', async () => { @@ -98,7 +98,7 @@ describe('Fixed cluster pool test suite', () => { inError = e } expect(inError).toBeDefined() - expect(typeof inError === 'string').toEqual(true) + expect(typeof inError === 'string').toBe(true) expect(inError).toBe('Error Message from ClusterWorker') }) @@ -111,7 +111,7 @@ describe('Fixed cluster pool test suite', () => { inError = e } expect(inError).toBeDefined() - expect(typeof inError === 'string').toEqual(true) + expect(typeof inError === 'string').toBe(true) expect(inError).toBe('Error Message from ClusterWorker:async') })