X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;ds=sidebyside;f=tests%2Fworker%2Fthread%2FechoWorker.js;h=071428c5bc5f1414b5e61718ccf605826480bf45;hb=1a81f8af06213d08267e8e7d593c5ec7be087535;hp=9471891ea0fd30a0d0740492ef6609ee3145e55c;hpb=3ec964d666b2ffa57b57a37a29542a727fc55ee6;p=poolifier.git diff --git a/tests/worker/thread/echoWorker.js b/tests/worker/thread/echoWorker.js index 9471891e..071428c5 100644 --- a/tests/worker/thread/echoWorker.js +++ b/tests/worker/thread/echoWorker.js @@ -1,5 +1,5 @@ 'use strict' -const { ThreadWorker, killBehaviorTypes } = require('../../../lib/index') +const { ThreadWorker, KillBehaviors } = require('../../../lib/index') function echo (data) { return data @@ -7,5 +7,5 @@ function echo (data) { module.exports = new ThreadWorker(echo, { maxInactiveTime: 500, - killBehavior: killBehaviorTypes.HARD + killBehavior: KillBehaviors.HARD })