ajmath / serverless-offline-scheduler

MIT License
96 stars 40 forks source link

Implement `context.getRemainingTimeInMillis` #13

Closed maxholman closed 6 years ago

maxholman commented 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.

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

ajmath commented 6 years ago

Nice work. Thanks for the PR

ajmath commented 6 years ago

Published in v0.3.4