test: refine worker tests
authorJérôme Benoit <jerome.benoit@sap.com>
Wed, 12 Jul 2023 10:44:04 +0000 (12:44 +0200)
committerJérôme Benoit <jerome.benoit@sap.com>
Wed, 12 Jul 2023 10:44:04 +0000 (12:44 +0200)
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
tests/worker/abstract-worker.test.js

index 429fff7da79d2c3d4797e645fd3d90c9d73933c9..944acbece738f49c21977049098aa3008fe694c9 100644 (file)
@@ -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)