-
Notifications
You must be signed in to change notification settings - Fork 10
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
Race condition on version 1.0.7 #18
Comments
I can't reproduce the issue with your block of code, can you send me a repro case? and the go version? |
@tonyredondo unfortunately I can`t share the real code/case because is a private company, the go version is 1.19 and the line that causes the error is https://github.com/undefinedlabs/go-mpatch/blob/master/patcher_unix.go#L46. This is the difference between two versions. If I remove it in 1.0.7 I can mock normally as in 1.0.6. The code we are mocking is exactly what I passed and my system info is: |
I have same issue. Go 1.21.5, go-mpatch = 1.0.7.
|
try to avoid stack overflow caused by undefinedlabs/go-mpatch#18
In version 1.0.6 we were able to mock time.Now easily.
Changing to 1.0.7, tests who contains this use start to break:
This code is given me the following stack error:
And as I said, in previous version this doesnt happen
The text was updated successfully, but these errors were encountered: