Implementation for killBehavior based on the last feedbacks
[poolifier.git] / tests / worker / thread / emptyWorker.js
index 69a83a7710fed25eeae541c9f1b83b737d135664..c7034caaa3b66f901f9ee26f7b9fd664b4f957c0 100644 (file)
@@ -1,6 +1,9 @@
 'use strict'
-const { ThreadWorker } = require('../../../lib/index')
+const { ThreadWorker, killBehaviorEnumeration } = require('../../../lib/index')
 
 function test (data) {}
 
-module.exports = new ThreadWorker(test, { maxInactiveTime: 500 })
+module.exports = new ThreadWorker(test, {
+  maxInactiveTime: 500,
+  killBehavior: killBehaviorEnumeration.HARD
+})