X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=tests%2Fworker%2Fcluster-worker.test.js;h=b3b4f027e2beca0e1df090c9f3d2ec26f7e68f52;hb=cb2b6c694e8d46f83cac31db9731afdf5fcd8f41;hp=196564a48c51aee9e32a2f4af7cd91208d9b92de;hpb=7fc5cce6ed95bfc01cb6199893cf104c3a3c0f0a;p=poolifier.git diff --git a/tests/worker/cluster-worker.test.js b/tests/worker/cluster-worker.test.js index 196564a4..b3b4f027 100644 --- a/tests/worker/cluster-worker.test.js +++ b/tests/worker/cluster-worker.test.js @@ -1,10 +1,10 @@ -const expect = require('expect') +const { expect } = require('expect') const { ClusterWorker } = require('../../lib') describe('Cluster worker test suite', () => { it('Verify worker has default maxInactiveTime', () => { const worker = new ClusterWorker(() => {}) - expect(worker.maxInactiveTime).toEqual(60_000) + expect(worker.opts.maxInactiveTime).toEqual(60000) }) it('Verify that handleError function works properly', () => {