From: Jérôme Benoit Date: Thu, 18 Jul 2024 18:41:16 +0000 (+0200) Subject: test: fix error type expectation X-Git-Tag: v4.1.0~1 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=16196bc039fc80684b777cf4cd9e822e3293c339;p=poolifier.git test: fix error type expectation Signed-off-by: Jérôme Benoit --- diff --git a/tests/pools/abstract-pool.test.mjs b/tests/pools/abstract-pool.test.mjs index 421a2498..ed49bbca 100644 --- a/tests/pools/abstract-pool.test.mjs +++ b/tests/pools/abstract-pool.test.mjs @@ -738,7 +738,7 @@ describe('Abstract pool test suite', () => { expect(() => pool.setTasksQueueOptions({ tasksStealingRatio: 1.1 }) ).toThrow( - new TypeError( + new RangeError( 'Invalid worker node tasks stealing ratio: must be between 0 and 1' ) )