From: Jérôme Benoit Date: Thu, 5 Oct 2023 18:38:42 +0000 (+0200) Subject: test: fix worker tests X-Git-Tag: v3.0.0~9 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=8b7983d43f177abe0716e22cf8d82d72c98cb23c;p=poolifier.git test: fix worker tests Signed-off-by: Jérôme Benoit --- diff --git a/tests/worker/abstract-worker.test.mjs b/tests/worker/abstract-worker.test.mjs index df844eef..575e0651 100644 --- a/tests/worker/abstract-worker.test.mjs +++ b/tests/worker/abstract-worker.test.mjs @@ -60,9 +60,6 @@ describe('Abstract worker test suite', () => { expect(() => new ThreadWorker(() => {}, { killHandler: 0 })).toThrowError( new TypeError('killHandler option is not a function') ) - expect(() => new ThreadWorker(() => {}, { async: true })).toThrowError( - new TypeError('async option is deprecated') - ) }) it('Verify that worker options are set at worker creation', () => {