X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;ds=sidebyside;f=tests%2Fpools%2Fabstract%2Fabstract-pool.test.js;h=0e31ad5c21927c135ce77d1d69508c7b7061d611;hb=30b963d47336380d1878a1feb1bc87f616e0fec6;hp=d4b147f78f4cd13e62aedbf5a8cac0af8d56884a;hpb=f751010550f07200428ca708afb2ec1d242cf7a7;p=poolifier.git diff --git a/tests/pools/abstract/abstract-pool.test.js b/tests/pools/abstract/abstract-pool.test.js index d4b147f7..0e31ad5c 100644 --- a/tests/pools/abstract/abstract-pool.test.js +++ b/tests/pools/abstract/abstract-pool.test.js @@ -462,36 +462,16 @@ describe('Abstract pool test suite', () => { failed: 0 }, runTime: { - aggregate: 0, - maximum: 0, - minimum: 0, - average: 0, - median: 0, history: expect.any(CircularArray) }, waitTime: { - aggregate: 0, - maximum: 0, - minimum: 0, - average: 0, - median: 0, history: expect.any(CircularArray) }, elu: { idle: { - aggregate: 0, - maximum: 0, - minimum: 0, - average: 0, - median: 0, history: expect.any(CircularArray) }, active: { - aggregate: 0, - maximum: 0, - minimum: 0, - average: 0, - median: 0, history: expect.any(CircularArray) } } @@ -534,36 +514,16 @@ describe('Abstract pool test suite', () => { failed: 0 }, runTime: { - aggregate: 0, - maximum: 0, - minimum: 0, - average: 0, - median: 0, history: expect.any(CircularArray) }, waitTime: { - aggregate: 0, - maximum: 0, - minimum: 0, - average: 0, - median: 0, history: expect.any(CircularArray) }, elu: { idle: { - aggregate: 0, - maximum: 0, - minimum: 0, - average: 0, - median: 0, history: expect.any(CircularArray) }, active: { - aggregate: 0, - maximum: 0, - minimum: 0, - average: 0, - median: 0, history: expect.any(CircularArray) } } @@ -580,36 +540,16 @@ describe('Abstract pool test suite', () => { failed: 0 }, runTime: { - aggregate: 0, - maximum: 0, - minimum: 0, - average: 0, - median: 0, history: expect.any(CircularArray) }, waitTime: { - aggregate: 0, - maximum: 0, - minimum: 0, - average: 0, - median: 0, history: expect.any(CircularArray) }, elu: { idle: { - aggregate: 0, - maximum: 0, - minimum: 0, - average: 0, - median: 0, history: expect.any(CircularArray) }, active: { - aggregate: 0, - maximum: 0, - minimum: 0, - average: 0, - median: 0, history: expect.any(CircularArray) } } @@ -640,36 +580,16 @@ describe('Abstract pool test suite', () => { failed: 0 }, runTime: { - aggregate: 0, - maximum: 0, - minimum: 0, - average: 0, - median: 0, history: expect.any(CircularArray) }, waitTime: { - aggregate: 0, - maximum: 0, - minimum: 0, - average: 0, - median: 0, history: expect.any(CircularArray) }, elu: { idle: { - aggregate: 0, - maximum: 0, - minimum: 0, - average: 0, - median: 0, history: expect.any(CircularArray) }, active: { - aggregate: 0, - maximum: 0, - minimum: 0, - average: 0, - median: 0, history: expect.any(CircularArray) } } @@ -688,36 +608,16 @@ describe('Abstract pool test suite', () => { failed: 0 }, runTime: { - aggregate: 0, - maximum: 0, - minimum: 0, - average: 0, - median: 0, history: expect.any(CircularArray) }, waitTime: { - aggregate: 0, - maximum: 0, - minimum: 0, - average: 0, - median: 0, history: expect.any(CircularArray) }, elu: { idle: { - aggregate: 0, - maximum: 0, - minimum: 0, - average: 0, - median: 0, history: expect.any(CircularArray) }, active: { - aggregate: 0, - maximum: 0, - minimum: 0, - average: 0, - median: 0, history: expect.any(CircularArray) } } @@ -811,9 +711,9 @@ describe('Abstract pool test suite', () => { ) const data = { n: 10 } const result0 = await pool.execute(data) - expect(result0).toBe(false) + expect(result0).toStrictEqual({ ok: 1 }) const result1 = await pool.execute(data, 'jsonIntegerSerialization') - expect(result1).toBe(false) + expect(result1).toStrictEqual({ ok: 1 }) const result2 = await pool.execute(data, 'factorial') expect(result2).toBe(3628800) const result3 = await pool.execute(data, 'fibonacci')