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 bad mock #139

Merged
merged 2 commits into from
Jun 2, 2020
Merged

Fix bad mock #139

merged 2 commits into from
Jun 2, 2020

Conversation

koddsson
Copy link
Contributor

@koddsson koddsson commented Jun 1, 2020

In #133 I made changes that were backed up by tests. Those tests relied on a mock of Date which did not work. The tests only ran green because I made the oversight of using current dates as the freeze date. Now that some time has passed, the tests are failing on master and this was discovered by @muan in #138.

This change changes the mock to actually freeze the time and fixes a off by one error in the tests.

koddsson and others added 2 commits June 1, 2020 19:53
Co-authored-by: Mu-An Chiou <me@muanchiou.com>
Co-authored-by: Mu-An Chiou <me@muanchiou.com>
Copy link
Contributor

@muan muan left a comment

Choose a reason for hiding this comment

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

🦡

@koddsson koddsson merged commit 487a0be into master Jun 2, 2020
@koddsson koddsson deleted the fix-bad-mock branch June 2, 2020 10:06
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.

2 participants