repositories
/
poolifier.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'master' of github.com:jerome-benoit/poolifier
[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 120e8e5ffa3e4ce457225d831a5c8556a28027cb..e7d84df9fe0205ab747559c2f8fa390c008349ea 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
await TestUtils.workerSleep
Function(data, 50000)
+ return
sleepTask
Function(data, 50000)
}
module.exports = new ThreadWorker(sleep, {
}
module.exports = new ThreadWorker(sleep, {
- maxInactiveTime: 500,
- async: true,
- killBehavior: KillBehaviors.HARD
+ killBehavior: KillBehaviors.HARD,
+ maxInactiveTime: 500
})
})