X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=tests%2Fpools%2Fabstract-pool.test.js;h=85d48d6a4e4eecaab910c20814a8abc471cc6fe3;hb=c2d078f77cd734e6a8f34800c3cefaf91a3d4be2;hp=3860a0eb95fc4f50de2ea9ff28813860faafd9b6;hpb=bfc75ccaf49d915d2b7e73c92360787b3245321a;p=poolifier.git diff --git a/tests/pools/abstract-pool.test.js b/tests/pools/abstract-pool.test.js index 3860a0eb..85d48d6a 100644 --- a/tests/pools/abstract-pool.test.js +++ b/tests/pools/abstract-pool.test.js @@ -79,7 +79,13 @@ describe('Abstract pool test suite', () => { }) it('Verify that numberOfWorkers is checked', () => { - expect(() => new FixedThreadPool()).toThrowError( + expect( + () => + new FixedThreadPool( + undefined, + './tests/worker-files/thread/testWorker.js' + ) + ).toThrowError( new Error( 'Cannot instantiate a pool without specifying the number of workers' )