Add test cases and fixed some sonar code smells
[poolifier.git] / tests / worker / thread / errorWorker.js
1 'use strict'
2 const { ThreadWorker, killBehaviorTypes } = require('../../../lib/index')
3
4 function error (data) {
5 throw new Error(data)
6 }
7
8 module.exports = new ThreadWorker(error, {
9 maxInactiveTime: 500,
10 killBehavior: killBehaviorTypes.HARD
11 })