test: fix error type expectation
authorJérôme Benoit <jerome.benoit@piment-noir.org>
Thu, 18 Jul 2024 18:41:16 +0000 (20:41 +0200)
committerJérôme Benoit <jerome.benoit@piment-noir.org>
Thu, 18 Jul 2024 18:41:16 +0000 (20:41 +0200)
Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
tests/pools/abstract-pool.test.mjs

index 421a24982acad994ab1792f18c7fbd9da8e5a11b..ed49bbcab5bf329dcf5ead3ba17eb08319ecebd8 100644 (file)
@@ -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'
       )
     )