X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=tests%2Fworker%2Fcluster%2FasyncErrorWorker.js;h=f3e0e7c8eb49c77007eafe0c7a68877f4e22df56;hb=3ec964d666b2ffa57b57a37a29542a727fc55ee6;hp=be675e110e96bb8d6bc6ae5c232b3f8a3e6de132;hpb=4c35177b63cac8a87aa6de389e1232e94c59b8c9;p=poolifier.git diff --git a/tests/worker/cluster/asyncErrorWorker.js b/tests/worker/cluster/asyncErrorWorker.js index be675e11..f3e0e7c8 100644 --- a/tests/worker/cluster/asyncErrorWorker.js +++ b/tests/worker/cluster/asyncErrorWorker.js @@ -1,5 +1,5 @@ 'use strict' -const { ClusterWorker, killBehaviorEnumeration } = require('../../../lib/index') +const { ClusterWorker, killBehaviorTypes } = require('../../../lib/index') async function error (data) { return new Promise((resolve, reject) => { @@ -13,5 +13,5 @@ async function error (data) { module.exports = new ClusterWorker(error, { maxInactiveTime: 500, async: true, - killBehavior: killBehaviorEnumeration + killBehavior: killBehaviorTypes })