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