2 const { ClusterWorker
, KillBehaviors
} = require('../../../lib')
3 const TestUtils
= require('../../test-utils')
5 async
function sleep (data
) {
6 return TestUtils
.sleepWorkerFunction(data
, 2000)
9 module
.exports
= new ClusterWorker(sleep
, {
12 killBehavior
: KillBehaviors
.HARD