X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=tests%2Fworker-files%2Fcluster%2FerrorWorker.js;h=b8e11d369d20c3ff06e2fc506f83aeda39feaa49;hb=7b7d96315331635fa3c8a12b03b6893fe91bf8ec;hp=d6d9297ac8e5f671c3249622139c3ba0c8b8d8b6;hpb=e901162fa610e2af305aac504549580b2de48cab;p=poolifier.git diff --git a/tests/worker-files/cluster/errorWorker.js b/tests/worker-files/cluster/errorWorker.js index d6d9297a..b8e11d36 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 + killBehavior: KillBehaviors.HARD, + maxInactiveTime: 500 })