build(deps-dev): apply updates
[poolifier.git] / tests / worker-files / cluster / testWorker.cjs
index fd6b2eb235514a5a05ec66064f718ad781e419d7..418afd7c05040df5eaec7dc453e22467846ece01 100644 (file)
@@ -3,6 +3,10 @@ const { ClusterWorker, KillBehaviors } = require('../../../lib/index.cjs')
 const { executeTaskFunction } = require('../../test-utils.cjs')
 const { TaskFunctions } = require('../../test-types.cjs')
 
+/**
+ *
+ * @param data
+ */
 function test (data) {
   data = data || {}
   data.function = data.function || TaskFunctions.jsonIntegerSerialization
@@ -11,5 +15,5 @@ function test (data) {
 
 module.exports = new ClusterWorker(test, {
   killBehavior: KillBehaviors.HARD,
-  maxInactiveTime: 500
+  maxInactiveTime: 500,
 })