repositories
/
poolifier.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
refactor: more object destructuration cleanup in examples
[poolifier.git]
/
tests
/
worker-files
/
thread
/
longRunningWorkerHardBehavior.js
diff --git
a/tests/worker-files/thread/longRunningWorkerHardBehavior.js
b/tests/worker-files/thread/longRunningWorkerHardBehavior.js
index a295da7bc647aa7ab5e49ab432d92096f11968a6..daa381edb226803d905f19314a31530dc357532b 100644
(file)
--- a/
tests/worker-files/thread/longRunningWorkerHardBehavior.js
+++ b/
tests/worker-files/thread/longRunningWorkerHardBehavior.js
@@
-1,13
+1,12
@@
'use strict'
'use strict'
-const { ThreadWorker, KillBehaviors } = require('../../../lib
/index
')
-const
TestUtils
= require('../../test-utils')
+const { ThreadWorker, KillBehaviors } = require('../../../lib')
+const
{ sleepTaskFunction }
= require('../../test-utils')
async function sleep (data) {
async function sleep (data) {
- return
TestUtils.sleepWorker
Function(data, 50000)
+ return
sleepTask
Function(data, 50000)
}
module.exports = new ThreadWorker(sleep, {
maxInactiveTime: 500,
}
module.exports = new ThreadWorker(sleep, {
maxInactiveTime: 500,
- async: true,
killBehavior: KillBehaviors.HARD
})
killBehavior: KillBehaviors.HARD
})