X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=tests%2Fworker%2Fcluster-worker.test.js;h=847c7e113713ceffe1f64769c69edd1b20819079;hb=fe2f6f840b801361c0f8a7ec090dc18b6b322cb0;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..847c7e11 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).toStrictEqual(60000) }) it('Verify that handleError function works properly', () => {