Commit | Line | Data |
---|---|---|
325f50bc | 1 | 'use strict' |
1a81f8af | 2 | const { ClusterWorker, KillBehaviors } = require('../../../lib/index') |
1641b313 | 3 | const { isMaster } = require('cluster') |
bdacc2d2 | 4 | const TestUtils = require('../../test-utils') |
325f50bc S |
5 | |
6 | function test (data) { | |
bf9549ae | 7 | TestUtils.jsonIntegerSerialization(100) |
1641b313 | 8 | return isMaster |
325f50bc S |
9 | } |
10 | ||
4c35177b | 11 | module.exports = new ClusterWorker(test, { |
12 | maxInactiveTime: 500, | |
1a81f8af | 13 | killBehavior: KillBehaviors.HARD |
4c35177b | 14 | }) |