repositories
/
poolifier.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge dependabot/npm_and_yarn/examples/typescript/websocket-server-pool/ws-worker_thr...
[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 29c633bbb2d2bb3f12163a70cc2adfe4c7481306..e7d84df9fe0205ab747559c2f8fa390c008349ea 100644
(file)
--- a/
tests/worker-files/thread/longRunningWorkerHardBehavior.js
+++ b/
tests/worker-files/thread/longRunningWorkerHardBehavior.js
@@
-1,13
+1,12
@@
'use strict'
const { ThreadWorker, KillBehaviors } = require('../../../lib')
'use strict'
const { ThreadWorker, KillBehaviors } = require('../../../lib')
-const
TestUtils
= require('../../test-utils')
+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, {
}
module.exports = new ThreadWorker(sleep, {
- maxInactiveTime: 500,
- async: true,
- killBehavior: KillBehaviors.HARD
+ killBehavior: KillBehaviors.HARD,
+ maxInactiveTime: 500
})
})