2 const { ClusterWorker
, KillBehaviors
} = require('../../../lib')
3 const { sleepWorkerFunction
} = require('../../test-utils')
5 async
function error (data
) {
6 return sleepWorkerFunction(
10 'Error Message from ClusterWorker:async'
14 module
.exports
= new ClusterWorker(error
, {
16 killBehavior
: KillBehaviors
.HARD