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