Align UTs worker implementation
authorJérôme Benoit <jerome.benoit@sap.com>
Sun, 6 Mar 2022 09:23:25 +0000 (10:23 +0100)
committerJérôme Benoit <jerome.benoit@sap.com>
Sun, 6 Mar 2022 09:23:25 +0000 (10:23 +0100)
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
tests/worker-files/cluster/echoWorker.js

index cd20753e71e860021ca5826b953587968c20d5b0..9bcae28163bf475972f334623505e4a23531ed64 100644 (file)
@@ -1,8 +1,10 @@
 'use strict'
-const { ClusterWorker } = require('../../../lib/index')
+const { ClusterWorker, KillBehaviors } = require('../../../lib/index')
 
 function echo (data) {
   return data
 }
 
-module.exports = new ClusterWorker(echo)
+module.exports = new ClusterWorker(echo, {
+  killBehavior: KillBehaviors.HARD
+})