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

TTL is not working? #98

Open
jasonfungsing opened this issue Feb 19, 2015 · 3 comments
Open

TTL is not working? #98

jasonfungsing opened this issue Feb 19, 2015 · 3 comments

Comments

@jasonfungsing
Copy link

I have a ttl function in one of my collection. When I unit test it with fongo, seems the data is not delete from db.

Is this because of the fongo does not have a "mongod" running?

Btw, I made my unit test thread to sleep for more than 2 minutes which should have enough time for mongod to check ttl index and perform deletion.

@twillouer
Copy link
Collaborator

Hi,

TTL is not handle in fongo, but we can do it if you need.

BTW, fongo doesn't need any "mongod" or external resource to run

@jasonfungsing
Copy link
Author

Thanks Twillouer,

It is good if this feature can be add in.

Cheers

@LilSebastian5000
Copy link

LilSebastian5000 commented Mar 26, 2018

@twillouer Any update on this? I can see my index with expireAfterSeconds being created with getIndexInfo(), but nothing expires after the 60 second TTLMonitor period. This would be a useful feature for junit testing.

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

3 participants