test: remove 2 unneeded UTs
[poolifier.git] / tests / worker-files / thread / testWorker.js
CommitLineData
106744f7 1'use strict'
65d7a1c9 2const { ThreadWorker, KillBehaviors } = require('../../../lib')
dbca3be9
JB
3const { executeTaskFunction } = require('../../test-utils')
4const { TaskFunctions } = require('../../test-types')
106744f7 5
6function test (data) {
6db75ad9 7 data = data || {}
dbca3be9
JB
8 data.function = data.function || TaskFunctions.jsonIntegerSerialization
9 return executeTaskFunction(data)
106744f7 10}
11
4c35177b 12module.exports = new ThreadWorker(test, {
cca3bb1a
JB
13 killBehavior: KillBehaviors.HARD,
14 maxInactiveTime: 500
4c35177b 15})