You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
it('should return a 500 response if there is an HTTP error', (done) => {
LambdaTester(handle)
.event(defaultEvent)
.expectResult((result) => {
/ * validations */
})
.verify(done);
});
But we're getting the following error:
Error: Timeout of 2000ms exceeded. For async tests and hooks, ensure "done()" is called; if returning a Promise, ensure it resolves.
I saw in this issue that using callbackWaitsForEmptyEventLoop = false is no supported, but we have use case for it (we have a constant that polls a configuration every 10 seconds so the user invocation does not have to wait for that) and would like to see if there's another way we can run the test. Is there some option for us to use lambda-tester with this code?
Thanks in advance!
The text was updated successfully, but these errors were encountered:
Hello,
We're running into issues with our following lambda:
We're trying to test it like so:
But we're getting the following error:
Error: Timeout of 2000ms exceeded. For async tests and hooks, ensure "done()" is called; if returning a Promise, ensure it resolves.
I saw in this issue that using
callbackWaitsForEmptyEventLoop = false
is no supported, but we have use case for it (we have a constant that polls a configuration every 10 seconds so the user invocation does not have to wait for that) and would like to see if there's another way we can run the test. Is there some option for us to use lambda-tester with this code?Thanks in advance!
The text was updated successfully, but these errors were encountered: