apache / openwhisk-workshop

[DEPRECATED] - OpenWhisk workshop to help developers learn how to build serverless applications using the platform.
Apache License 2.0
36 stars 19 forks source link

NodeJS Delay Action failing #11

Closed cfjedimaster closed 7 years ago

cfjedimaster commented 7 years ago

The task for the delay test says this:

Create an Action (hello-world-delay-nodejs) that returns the same message after an artificial delay of one second.

This to me means it should take, AT LEAST, 1000ms, so I used this:

function main() { return new Promise(function(resolve,reject) { setTimeout(resolve({"message":"Hello World"}),1000); }); }

When I tried to verify, I got:

✗ OpenWhisk Action hello-world-nodejs-delay returned response within 1000ms.

Which seems to imply it wants to return in less than 1000ms. So I changed my timeout to 100, and it didn't help.

jthomas commented 7 years ago

The exercise verifier was using the wrong action name, fixed now!