repositories
/
poolifier.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
test: improve coverage
[poolifier.git]
/
src
/
pools
/
abstract-pool.ts
diff --git
a/src/pools/abstract-pool.ts
b/src/pools/abstract-pool.ts
index afcf611eb65225449cf83c9440f5d1af81a24b6b..f862bbbecfff8c4068c7243e362035470f00b392 100644
(file)
--- a/
src/pools/abstract-pool.ts
+++ b/
src/pools/abstract-pool.ts
@@
-265,10
+265,10
@@
export abstract class AbstractPool<
}
if (
workerChoiceStrategyOptions.choiceRetries != null &&
}
if (
workerChoiceStrategyOptions.choiceRetries != null &&
- workerChoiceStrategyOptions.choiceRetries <
=
0
+ workerChoiceStrategyOptions.choiceRetries < 0
) {
throw new RangeError(
) {
throw new RangeError(
- `Invalid worker choice strategy options: choice retries '${workerChoiceStrategyOptions.choiceRetries}' must be greater than zero`
+ `Invalid worker choice strategy options: choice retries '${workerChoiceStrategyOptions.choiceRetries}' must be greater
or equal
than zero`
)
}
if (
)
}
if (