refactor: split TestUtils class into arrow functions
[poolifier.git] / tests / worker-files / thread / asyncErrorWorker.js
index 1078982305231aa813708cda87f1d44c19fbe36d..6bc0ae6b3b19226c557ce3455fe068b7b21e8bc4 100644 (file)
@@ -1,9 +1,9 @@
 'use strict'
 const { ThreadWorker, KillBehaviors } = require('../../../lib')
-const TestUtils = require('../../test-utils')
+const { sleepWorkerFunction } = require('../../test-utils')
 
 async function error (data) {
-  return TestUtils.sleepWorkerFunction(
+  return sleepWorkerFunction(
     data,
     2000,
     true,