You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@openwhisk.apache.org by GitBox <gi...@apache.org> on 2019/02/14 07:41:54 UTC
[GitHub] markusthoemmes commented on a change in pull request #4281: Make
intermittently failing concurrencyTests more stable.
markusthoemmes commented on a change in pull request #4281: Make intermittently failing concurrencyTests more stable.
URL: https://github.com/apache/incubator-openwhisk/pull/4281#discussion_r256718709
##########
File path: tests/dat/actions/concurrent.js
##########
@@ -17,6 +19,10 @@ function main(args) {
setTimeout(function() {
checkRequests(args, resolve, reject);
}, interval);
+ }).finally(() => {
+ // Before leaving the container, decrement the counter again. But wait twice the interval, before decrementing it. Otherwise, the
+ // other requests might not realise, that all requests were inside the container.
+ setTimeout(() => counter--, 2 * interval);
Review comment:
I think @rabbah's comment is towards: Is it guaranteed to be executed before the next `.then` block? (Scala's `andThen` forces that ordering).
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services