X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=tests%2Fworker%2Fthread%2FechoWorker.js;h=3b554ccc4588dc0b2675149bfb46a706a5222767;hb=5efc2a90350b03cb26758a5adbd692b250a7d331;hp=006bf97cd390f59f2c5bd37c28a2bfbb307a889b;hpb=325f50bc1777ea44abc9736ce9d780ec0c8f90e2;p=poolifier.git diff --git a/tests/worker/thread/echoWorker.js b/tests/worker/thread/echoWorker.js index 006bf97c..3b554ccc 100644 --- a/tests/worker/thread/echoWorker.js +++ b/tests/worker/thread/echoWorker.js @@ -1,8 +1,11 @@ 'use strict' -const { ThreadWorker } = require('../../../lib/index') +const { ThreadWorker, killBehaviorEnumeration } = require('../../../lib/index') function echo (data) { return data } -module.exports = new ThreadWorker(echo, { maxInactiveTime: 500 }) +module.exports = new ThreadWorker(echo, { + maxInactiveTime: 500, + killBehavior: killBehaviorEnumeration.HARD +})