X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=tests%2Fpools%2Fcluster%2Fdynamic.test.js;fp=tests%2Fpools%2Fcluster%2Fdynamic.test.js;h=65dff559ab1618fb2395505fa055ea935821a6ae;hb=dbca3be954130834defeb4084096272ecf660c5c;hp=7c24131b0624d845f44c8d24c16f93d50382696b;hpb=82ea6492d3318a170559bb57501dc16023bb18d8;p=poolifier.git diff --git a/tests/pools/cluster/dynamic.test.js b/tests/pools/cluster/dynamic.test.js index 7c24131b..65dff559 100644 --- a/tests/pools/cluster/dynamic.test.js +++ b/tests/pools/cluster/dynamic.test.js @@ -1,6 +1,6 @@ const { expect } = require('expect') const { DynamicClusterPool, PoolEvents } = require('../../../lib') -const { WorkerFunctions } = require('../../test-types') +const { TaskFunctions } = require('../../test-types') const { sleep, waitWorkerEvents } = require('../../test-utils') describe('Dynamic cluster pool test suite', () => { @@ -17,11 +17,11 @@ describe('Dynamic cluster pool test suite', () => { it('Verify that the function is executed in a worker cluster', async () => { let result = await pool.execute({ - function: WorkerFunctions.fibonacci + function: TaskFunctions.fibonacci }) expect(result).toBe(75025) result = await pool.execute({ - function: WorkerFunctions.factorial + function: TaskFunctions.factorial }) expect(result).toBe(9.33262154439441e157) })