repositories
/
poolifier.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ad05405
)
test: handle special case in TestUtils.waitExits()
author
Jérôme Benoit
<jerome.benoit@sap.com>
Fri, 26 May 2023 11:25:52 +0000
(13:25 +0200)
committer
Jérôme Benoit
<jerome.benoit@sap.com>
Fri, 26 May 2023 11:25:52 +0000
(13:25 +0200)
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
tests/test-utils.js
patch
|
blob
|
blame
|
history
diff --git
a/tests/test-utils.js
b/tests/test-utils.js
index a23d8948b146408e85b30b8d5e4c9ded9248d7c1..0e71c718a8eee83c85011e10f417725811ae34f8 100644
(file)
--- a/
tests/test-utils.js
+++ b/
tests/test-utils.js
@@
-4,6
+4,9
@@
class TestUtils {
static async waitExits (pool, numberOfExitEventsToWait) {
return new Promise(resolve => {
let exitEvents = 0
+ if (numberOfExitEventsToWait === 0) {
+ resolve(exitEvents)
+ }
for (const workerNode of pool.workerNodes) {
workerNode.worker.on('exit', () => {
++exitEvents