From: Jérôme Benoit Date: Wed, 12 Jul 2023 10:44:04 +0000 (+0200) Subject: test: refine worker tests X-Git-Tag: v2.6.16~3 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=135f2a9f5a7ca0e4cc22e064af7d837e551f2ea3;p=poolifier.git test: refine worker tests Signed-off-by: Jérôme Benoit --- diff --git a/tests/worker/abstract-worker.test.js b/tests/worker/abstract-worker.test.js index 429fff7d..944acbec 100644 --- a/tests/worker/abstract-worker.test.js +++ b/tests/worker/abstract-worker.test.js @@ -193,7 +193,7 @@ describe('Abstract worker test suite', () => { const fn2 = () => { return 2 } - const worker = new ThreadWorker({ fn1, fn2 }) + const worker = new ClusterWorker({ fn1, fn2 }) expect(worker.taskFunctions.get('default')).toBeInstanceOf(Function) expect(worker.taskFunctions.get('fn1')).toBeInstanceOf(Function) expect(worker.taskFunctions.get('fn2')).toBeInstanceOf(Function)