X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=tests%2Fpools%2Fabstract-pool.test.mjs;h=ecb1c5670e095a4f89678f8a511a99721084d3ea;hb=7e5b3ca1879a576eebb1ecfd1af2e50085d14490;hp=8db1d2b1b2fac2af2beba35a3e72b03ce1fc14cc;hpb=6a677734f19a229fe6a863acd0e6aa0b0d762d6f;p=poolifier.git diff --git a/tests/pools/abstract-pool.test.mjs b/tests/pools/abstract-pool.test.mjs index 8db1d2b1..ecb1c567 100644 --- a/tests/pools/abstract-pool.test.mjs +++ b/tests/pools/abstract-pool.test.mjs @@ -1715,7 +1715,7 @@ describe('Abstract pool test suite', () => { './tests/worker-files/thread/testMultipleTaskFunctionsWorker.mjs' ) expect(() => pool.mapExecute()).toThrow(new TypeError('data argument must be a defined iterable')) - expect(() => pool.mapExecute(0)).toThrow(new Error('data argument must be an iterable')) + expect(() => pool.mapExecute(0)).toThrow(new TypeError('data argument must be an iterable')) let results = await pool.mapExecute([{}, {}, {}, {}]) expect(results).toStrictEqual([ { ok: 1 },