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