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

Disable Process#clock_gettime mocking by default #426

Closed

Conversation

alexcwatt
Copy link
Contributor

@alexcwatt
Copy link
Contributor Author

@joshuacronemeyer This might be the simplest fix. I was also thinking it could be nice if the TimeStackItem new about whether or not we are mocking Process#clock_gettime so it could be an argument to Timecop.freeze and Timecop.travel in the future.

Just wanted to get something up quickly for feedback.

@joshuacronemeyer
Copy link
Collaborator

@alexcwatt code looks good. I think it's worth a mention in the README. Let me know if you'd like me to write something and add to this PR or if you got it. And thanks for the quick turnaround!

@olly and @nerdrew from the next release the process clock freezing will be opt-in. Feel free to weigh in on this.

@olly
Copy link

olly commented Jun 14, 2024

@joshuacronemeyer I'm happy with that proposal. I don't personally have any need to mock the Process clock, but to me it seems like needing to is a pretty niche use-case and so opting-in is appropriate.

@alexcwatt
Copy link
Contributor Author

alexcwatt commented Jun 14, 2024 via email

@joshuacronemeyer
Copy link
Collaborator

ok. i will shepherd this to a release this weekend. thanks all. @alexcwatt i actually wasn't surprised that something like this cropped up, even minor changes tend to bring folks out of the woodwork pretty fast.

@joshuacronemeyer
Copy link
Collaborator

closed this in favor of this #427 because I don't know what i'm doing haha.

All i could figure out how to do was create my own branch and merge alex's branch into it and then make a PR from that.

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.

None yet

3 participants