X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=tests%2Fworker%2Fthread%2FerrorWorker.js;h=7f7fdadd6ff4fe612588d2b6fc7ecd1e27fc74db;hb=3ec964d666b2ffa57b57a37a29542a727fc55ee6;hp=6b7ee3c9e6dccdfcbcf063097e005ce8c531907e;hpb=4c35177b63cac8a87aa6de389e1232e94c59b8c9;p=poolifier.git diff --git a/tests/worker/thread/errorWorker.js b/tests/worker/thread/errorWorker.js index 6b7ee3c9..7f7fdadd 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, killBehaviorTypes } = 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: killBehaviorTypes.HARD })