perf: remove unneeded class indirection for dynamic pool in worker
[poolifier.git] / tests / worker-files / cluster / longRunningWorkerSoftBehavior.js
index ea53bbea5b42cbc2b83474074430101d59cb33f6..c1e89e1a5150558af4b42338fae23c3d6ec66f3a 100644 (file)
@@ -3,7 +3,7 @@ const { ClusterWorker } = require('../../../lib/index')
 const TestUtils = require('../../test-utils')
 
 async function sleep (data) {
-  return await TestUtils.workerSleepFunction(data, 50000)
+  return TestUtils.sleepWorkerFunction(data, 50000)
 }
 
 module.exports = new ClusterWorker(sleep, {