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 29c633bbb2d2bb3f12163a70cc2adfe4c7481306..d81f7f9020c1500d715a8ac5077c91c6e0334701 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
{ sleepWorkerFunction }
= require('../../test-utils')
async function sleep (data) {
async function sleep (data) {
- return
TestUtils.
sleepWorkerFunction(data, 50000)
+ return sleepWorkerFunction(data, 50000)
}
module.exports = new ThreadWorker(sleep, {
maxInactiveTime: 500,
}
module.exports = new ThreadWorker(sleep, {
maxInactiveTime: 500,
- async: true,
killBehavior: KillBehaviors.HARD
})
killBehavior: KillBehaviors.HARD
})