-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
tests: remove redundant comparison in repo dump/restore #18660
Conversation
It is a leftover forgotten in go-gitea#18621 Signed-off-by: singuliere <singuliere@autistici.org>
Please could you explain what this was doing and why it is no longer needed. |
The description of the pr was updated with links and a detailed explanation. |
Codecov Report
@@ Coverage Diff @@
## main #18660 +/- ##
==========================================
- Coverage 46.64% 46.45% -0.20%
==========================================
Files 846 851 +5
Lines 121331 121925 +594
==========================================
+ Hits 56595 56637 +42
- Misses 57859 58411 +552
Partials 6877 6877
Continue to review full report at Codecov.
|
* giteaofficial/main: Fix issue with docker-rootless shimming script (go-gitea#18690) tests: remove redundant comparison in repo dump/restore (go-gitea#18660) [skip ci] Updated translations via Crowdin Disable unnecessary OpenID/OAuth2 elements (go-gitea#18491) Add apply-patch, basic revert and cherry-pick functionality (go-gitea#17902) C preprocessor colors improvement (go-gitea#18671) Update object repo with the migrated repository (go-gitea#18684)
It is a leftover forgotten in go-gitea#18621 Signed-off-by: singuliere <singuliere@autistici.org> Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
It is a leftover forgotten in #18621
This code block was replaced by these tests. But it was also incorrectly copy/pasted before them, duplicating the verification.
Duplicating a verification is not, in itself, a bad thing. But the verification is also done in a different, less flexible, way that is more likely to fail in the future, when new fields are added. It would create additional maintenance work and it would be a waste of effort because the tests it provides are now redundant.