-
Notifications
You must be signed in to change notification settings - Fork 21
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
Mock Time #11
Mock Time #11
Conversation
I realized that this did not actually depend upon #10 because all the changes were taking place in the Still, between this and the Client, it will be smooth to unit-test the upcoming ISO8601 support. Sorry for all the branch merging, I'm maintaining a few here trying to keep different features separate and I got confused 😉 The I'm pleased that this solution allows for mocking the time while preserving the DB as the single time source. The only snag I ran into is that the Mysql driver doesn't support multiple statements in a single Exec—if they contain placeholders—so I had to touch the |
Closes #8
Adds the ability to mock time for the purpose of unit tests. Uses the
IFNULL(?, UTC_TIMESTAMP())
strategy described in #8.Depends upon #10 because it will be annoying to unit-test this without a proper Go client 😉