Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Npm test stuck if cache is used with TTL #101

Open
ani-patel opened this issue Apr 25, 2018 · 1 comment
Open

Npm test stuck if cache is used with TTL #101

ani-patel opened this issue Apr 25, 2018 · 1 comment

Comments

@ani-patel
Copy link

My unit tests are stuck after they are executed unless the library TTL expires for a particular operation

@jkoepcke
Copy link

Seems like there is an internal timer running to check the timeout. A simple workaround is, to call

require("memory-cache").clear()

at the end of your test.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants