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

Fix mock time in GarbageCollection test #155

Merged
merged 3 commits into from
Aug 3, 2023

Conversation

lekoala
Copy link
Contributor

@lekoala lekoala commented Jun 28, 2023

i don't know if it's fully intentional that a persistent login hash can be deleted while the session is still valid, but anyways, here it goes :-)

by changing the mock time, we can show that a persisted session should be cleared if LastAccesed + session lifetime < now
(or should not be cleared, if the persistent session without a hash is meant to stay => not what i did here, but i can revert that part if needed)

fixes #154

Copy link
Member

@GuySartorelli GuySartorelli left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, thanks!

@GuySartorelli GuySartorelli merged commit bc5e08c into silverstripe:2 Aug 3, 2023
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

Successfully merging this pull request may close these issues.

Garbage collector do not collect things as it should
2 participants