Report some code cleanups from work in progress PR
[poolifier.git] / tests / worker-files / cluster / testWorker.js
CommitLineData
325f50bc 1'use strict'
1a81f8af 2const { ClusterWorker, KillBehaviors } = require('../../../lib/index')
1641b313 3const { isMaster } = require('cluster')
bdacc2d2 4const TestUtils = require('../../test-utils')
325f50bc
S
5
6function test (data) {
bdacc2d2 7 TestUtils.jsonIntegerSerialization(50)
1641b313 8 return isMaster
325f50bc
S
9}
10
4c35177b 11module.exports = new ClusterWorker(test, {
12 maxInactiveTime: 500,
1a81f8af 13 killBehavior: KillBehaviors.HARD
4c35177b 14})