X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=tests%2Fworker%2Fthread%2FemptyWorker.js;h=c7034caaa3b66f901f9ee26f7b9fd664b4f957c0;hb=3fda8d8bc479a2b0074254fc56b496cdbb878b1c;hp=69a83a7710fed25eeae541c9f1b83b737d135664;hpb=325f50bc1777ea44abc9736ce9d780ec0c8f90e2;p=poolifier.git diff --git a/tests/worker/thread/emptyWorker.js b/tests/worker/thread/emptyWorker.js index 69a83a77..c7034caa 100644 --- a/tests/worker/thread/emptyWorker.js +++ b/tests/worker/thread/emptyWorker.js @@ -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 +})