build(deps-dev): apply updates
[poolifier.git] / tests / worker-files / cluster / asyncErrorWorker.js
index 0536e83b46601e9b7d924b1706aa18415bc9f340..f358fc3ea409ddb987efa05a1ab38ee245afc4df 100644 (file)
@@ -1,9 +1,9 @@
 'use strict'
 const { ClusterWorker, KillBehaviors } = require('../../../lib')
-const { sleepWorkerFunction } = require('../../test-utils')
+const { sleepTaskFunction } = require('../../test-utils.js')
 
 async function error (data) {
-  return sleepWorkerFunction(
+  return sleepTaskFunction(
     data,
     2000,
     true,
@@ -12,6 +12,6 @@ async function error (data) {
 }
 
 module.exports = new ClusterWorker(error, {
-  maxInactiveTime: 500,
-  killBehavior: KillBehaviors.HARD
+  killBehavior: KillBehaviors.HARD,
+  maxInactiveTime: 500
 })