rabbah commented on a change in pull request #3461: Add action creation test
with maximum time limit
URL:
https://github.com/apache/incubator-openwhisk/pull/3461#discussion_r175421715
##########
File path: tests/dat/actions/timeoutLean.js
##########
@@ -0,0 +1,19 @@
+/**
+ * Node.js based OpenWhisk action that waits for the specified number
+ * of milliseconds before returning. Uses a timer instead of a busy loop.
+ * The function actually waits slightly longer than requested.
+ *
+ * @param parm Object with Number property timeoutInMs
+ * @returns Object with String property msg describing how long the function
waited
+ */
+function main(parm) {
+ console.log("Specified timeout is " + parm.timeoutInMs + " ms.")
+
+ return new Promise(function(resolve, reject) {
Review comment:
Isn’t there a timeout action alreaady?
----------------------------------------------------------------
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:
[email protected]
With regards,
Apache Git Services