X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=tests%2Ffixed.test.js;h=604ef80c0e0901740eb658576c465c66a3d350d3;hb=cf9aa6c3340ad00792aa3c5e1a9d047cd0140fc2;hp=2ed97444bdb94a98f793f1833d027c0070f4b14b;hpb=2cb4627928795847a7e4f867c6fa8f0781d062c9;p=poolifier.git diff --git a/tests/fixed.test.js b/tests/fixed.test.js index 2ed97444..604ef80c 100644 --- a/tests/fixed.test.js +++ b/tests/fixed.test.js @@ -1,12 +1,16 @@ const expect = require('expect') const FixedThreadPool = require('../lib/fixed') const numThreads = 10 -const pool = new FixedThreadPool(numThreads, - './tests/workers/testWorker.js', - { errorHandler: (e) => console.error(e), onlineHandler: () => console.log('worker is online') }) +const pool = new FixedThreadPool(numThreads, './tests/workers/testWorker.js', { + errorHandler: e => console.error(e), + onlineHandler: () => console.log('worker is online') +}) const emptyPool = new FixedThreadPool(1, './tests/workers/emptyWorker.js') const echoPool = new FixedThreadPool(1, './tests/workers/echoWorker.js') -const errorPool = new FixedThreadPool(1, './tests/workers/errorWorker.js', { errorHandler: (e) => console.error(e), onlineHandler: () => console.log('worker is online') }) +const errorPool = new FixedThreadPool(1, './tests/workers/errorWorker.js', { + errorHandler: e => console.error(e), + onlineHandler: () => console.log('worker is online') +}) const asyncPool = new FixedThreadPool(1, './tests/workers/asyncWorker.js') describe('Fixed thread pool test suite ', () => {