2 const { ClusterWorker
, KillBehaviors
} = require('../../../lib/index')
3 const { isMaster
} = require('cluster')
4 const TestUtils
= require('../../test-utils')
5 const WorkerFunctions
= require('../../test-types')
9 data
.function = data
.function || WorkerFunctions
.jsonIntegerSerialization
10 TestUtils
.executeWorkerFunction(data
)
14 module
.exports
= new ClusterWorker(test
, {
16 killBehavior
: KillBehaviors
.HARD