Closed maxholman closed 6 years ago
This PR implements the missing context method context.getRemainingTimeInMillis which returns the number of milliseconds remaining before the function will exit with a timeout (see docs) plus the relevant tests.
context.getRemainingTimeInMillis
It uses the same essential logic as seen in serverless-offline
I have also specified a node version in circle.yml as yarn is no longer supported for node < 4.8.0 and tests were failing. See related yarnpkg issue
circle.yml
yarn
node
yarnpkg
Nice work. Thanks for the PR
Published in v0.3.4
This PR implements the missing context method
context.getRemainingTimeInMillis
which returns the number of milliseconds remaining before the function will exit with a timeout (see docs) plus the relevant tests.It uses the same essential logic as seen in serverless-offline
I have also specified a node version in
circle.yml
asyarn
is no longer supported fornode
< 4.8.0 and tests were failing. See relatedyarnpkg
issue