-
Notifications
You must be signed in to change notification settings - Fork 880
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
refactor: stop using mpatch #1654
Conversation
Codecov Report
@@ Coverage Diff @@
## master #1654 +/- ##
==========================================
- Coverage 82.07% 82.05% -0.02%
==========================================
Files 116 116
Lines 16064 16064
==========================================
- Hits 13184 13181 -3
- Misses 2208 2210 +2
- Partials 672 673 +1
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You removed one instance, but there are 3 others so we haven't removed the dependency completely since the go.mod/go.sum haven't been affected.
I think you either have to modify the other tests to remove it or:
If you are emboldened, we could switch our code to use a util/time.Now()
helper which is can be overwritten by unit tests
c921b34
to
ac80a74
Compare
Good suggestion @jessesuen . I've introduced PTAL |
Signed-off-by: Alexander Matyushentsev <[email protected]>
Signed-off-by: Alexander Matyushentsev <[email protected]>
ac80a74
to
3d6da0d
Compare
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
Signed-off-by: Alexander Matyushentsev [email protected]
Unit tests are failing on mac :( Looks like https://github.com/undefinedlabs/go-mpatch does not work well on the latest mac os versions. There is no ARM support as well: undefinedlabs/go-mpatch#2 . The ARM support was requested in 2020, so unlikely it will be supported.
I suggest to stop using https://github.com/undefinedlabs/go-mpatch. PR removes the usage in one place. We still use the library in
controller_test.go#newFixture