repositories
/
poolifier.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix: revert now unneeded workaround
[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 3c707eb55548adeb2ac587381161bb41d8adb084..d81f7f9020c1500d715a8ac5077c91c6e0334701 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
{ sleepWorkerFunction }
= require('../../test-utils')
async function sleep (data) {
async function sleep (data) {
- return
TestUtils.workerSleep
Function(data, 50000)
+ return
sleepWorker
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
})