Dedupe worker attributes (#364)
[poolifier.git] / tests / worker / cluster-worker.test.js
index 196564a48c51aee9e32a2f4af7cd91208d9b92de..fccf3c78c80e59e049d8f9bc4a131354621468ec 100644 (file)
@@ -4,7 +4,7 @@ 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(60_000)
   })
 
   it('Verify that handleError function works properly', () => {