X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=tests%2Fworker-files%2Fcluster%2FerrorWorker.js;h=01cffc5e47641a74297f0ac1e11542eaf4f8e4d9;hb=5a8e162d045b7d6321dd7458dce3db03d0f78b6d;hp=d6d9297ac8e5f671c3249622139c3ba0c8b8d8b6;hpb=6fdc721bfdc82852c19cf4d53e0918c9665a580f;p=poolifier.git diff --git a/tests/worker-files/cluster/errorWorker.js b/tests/worker-files/cluster/errorWorker.js index d6d9297a..01cffc5e 100644 --- a/tests/worker-files/cluster/errorWorker.js +++ b/tests/worker-files/cluster/errorWorker.js @@ -1,12 +1,11 @@ 'use strict' -const { ClusterWorker, KillBehaviors } = require('../../../lib/index') +const { ClusterWorker, KillBehaviors } = require('../../../lib') -function error (data) { +function error () { throw new Error('Error Message from ClusterWorker') } module.exports = new ClusterWorker(error, { maxInactiveTime: 500, - async: false, killBehavior: KillBehaviors.HARD })