repositories
/
poolifier.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add test cases and fixed some sonar code smells
[poolifier.git]
/
tests
/
worker
/
cluster
/
asyncErrorWorker.js
diff --git
a/tests/worker/cluster/asyncErrorWorker.js
b/tests/worker/cluster/asyncErrorWorker.js
index be675e110e96bb8d6bc6ae5c232b3f8a3e6de132..f3e0e7c8eb49c77007eafe0c7a68877f4e22df56 100644
(file)
--- a/
tests/worker/cluster/asyncErrorWorker.js
+++ b/
tests/worker/cluster/asyncErrorWorker.js
@@
-1,5
+1,5
@@
'use strict'
'use strict'
-const { ClusterWorker, killBehavior
Enumeration
} = require('../../../lib/index')
+const { ClusterWorker, killBehavior
Types
} = require('../../../lib/index')
async function error (data) {
return new Promise((resolve, reject) => {
async function error (data) {
return new Promise((resolve, reject) => {
@@
-13,5
+13,5
@@
async function error (data) {
module.exports = new ClusterWorker(error, {
maxInactiveTime: 500,
async: true,
module.exports = new ClusterWorker(error, {
maxInactiveTime: 500,
async: true,
- killBehavior: killBehavior
Enumeration
+ killBehavior: killBehavior
Types
})
})