refactor: display queues usage in pool info only if enabled
[poolifier.git] / tests / worker-files / thread / longRunningWorkerSoftBehavior.js
index 65195d6f64388aaf7cc3e78eacf58ca35355a319..eda5a4059643c3efd092a9e269ad54b18fc8ecd7 100644 (file)
@@ -1,12 +1,11 @@
 'use strict'
-const { ThreadWorker } = require('../../../lib/index')
-const TestUtils = require('../../test-utils')
+const { ThreadWorker } = require('../../../lib')
+const { sleepWorkerFunction } = require('../../test-utils')
 
 async function sleep (data) {
-  return TestUtils.workerSleepFunction(data, 50000)
+  return sleepWorkerFunction(data, 50000)
 }
 
 module.exports = new ThreadWorker(sleep, {
-  maxInactiveTime: 500,
-  async: true
+  maxInactiveTime: 500
 })