X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=tests%2Fworker%2Fthread%2FerrorWorker.js;h=e9f20ab8e5101120d7f51459bf338676208f404f;hb=1a81f8af06213d08267e8e7d593c5ec7be087535;hp=6b7ee3c9e6dccdfcbcf063097e005ce8c531907e;hpb=afd20c11f44e34385623a4b86834f69bcf660606;p=poolifier.git diff --git a/tests/worker/thread/errorWorker.js b/tests/worker/thread/errorWorker.js index 6b7ee3c9..e9f20ab8 100644 --- a/tests/worker/thread/errorWorker.js +++ b/tests/worker/thread/errorWorker.js @@ -1,5 +1,5 @@ 'use strict' -const { ThreadWorker, killBehaviorEnumeration } = require('../../../lib/index') +const { ThreadWorker, KillBehaviors } = require('../../../lib/index') function error (data) { throw new Error(data) @@ -7,5 +7,5 @@ function error (data) { module.exports = new ThreadWorker(error, { maxInactiveTime: 500, - killBehavior: killBehaviorEnumeration.HARD + killBehavior: KillBehaviors.HARD })