repositories
/
poolifier.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Bump typedoc from 0.20.30 to 0.20.31 (#272)
[poolifier.git]
/
tests
/
worker-files
/
thread
/
emptyWorker.js
diff --git
a/tests/worker-files/thread/emptyWorker.js
b/tests/worker-files/thread/emptyWorker.js
index 69a83a7710fed25eeae541c9f1b83b737d135664..6a146c2653496f99238945c6648aa1dbe51ab4e2 100644
(file)
--- a/
tests/worker-files/thread/emptyWorker.js
+++ b/
tests/worker-files/thread/emptyWorker.js
@@
-1,6
+1,9
@@
'use strict'
'use strict'
-const { ThreadWorker } = require('../../../lib/index')
+const { ThreadWorker
, KillBehaviors
} = require('../../../lib/index')
function test (data) {}
function test (data) {}
-module.exports = new ThreadWorker(test, { maxInactiveTime: 500 })
+module.exports = new ThreadWorker(test, {
+ maxInactiveTime: 500,
+ killBehavior: KillBehaviors.HARD
+})