X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=tests%2Fworker-files%2Fcluster%2FerrorWorker.js;h=b8e11d369d20c3ff06e2fc506f83aeda39feaa49;hb=0bc53e954d6d832092db4ea6ccea8b0f8f071ebe;hp=d6d9297ac8e5f671c3249622139c3ba0c8b8d8b6;hpb=aad2595fd9c26bcb2f0d7a22d06edf56d5b08bdb;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 })