Merge pull request #1032 from poolifier/combine-prs-branch
[poolifier.git] / tests / worker-files / thread / asyncWorker.js
index 2191a12e85240de96646fc2d2dfd4d10622ab5d0..2b834b87fd33d9002bd664707159581824f90301 100644 (file)
@@ -1,13 +1,12 @@
 'use strict'
-const { ThreadWorker, KillBehaviors } = require('../../../lib/index')
-const TestUtils = require('../../test-utils')
+const { ThreadWorker, KillBehaviors } = require('../../../lib')
+const { sleepTaskFunction } = require('../../test-utils')
 
 async function sleep (data) {
-  return TestUtils.sleepWorkerFunction(data, 2000)
+  return sleepTaskFunction(data, 2000)
 }
 
 module.exports = new ThreadWorker(sleep, {
   maxInactiveTime: 500,
-  async: true,
   killBehavior: KillBehaviors.HARD
 })