diff options
author | singuliere <35190819+singuliere@users.noreply.github.com> | 2022-02-10 03:41:05 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-10 10:41:05 +0800 |
commit | bc8e19ece1663d67f980c56612eb2423ae33eee6 (patch) | |
tree | 6167fce269b26fea8e81e8e1671941ee307a221c /integrations | |
parent | e034d3a710c77c53f2ce3222dc78a69540334622 (diff) | |
download | gitea-bc8e19ece1663d67f980c56612eb2423ae33eee6.tar.gz gitea-bc8e19ece1663d67f980c56612eb2423ae33eee6.zip |
tests: remove redundant comparison in repo dump/restore (#18660)
It is a leftover forgotten in https://github.com/go-gitea/gitea/pull/18621
Signed-off-by: singuliere <singuliere@autistici.org>
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Diffstat (limited to 'integrations')
-rw-r--r-- | integrations/dump_restore_test.go | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/integrations/dump_restore_test.go b/integrations/dump_restore_test.go index 3f34779727..3b07bfeeda 100644 --- a/integrations/dump_restore_test.go +++ b/integrations/dump_restore_test.go @@ -140,15 +140,6 @@ func (c *compareDump) assertEquals(repoBefore, repoAfter *repo_model.Repository) c.repoAfter = repoAfter c.dirAfter = filepath.Join(c.basePath, repoAfter.OwnerName, repoAfter.Name) - for _, filename := range []string{"repo.yml", "label.yml"} { - beforeBytes, err := os.ReadFile(filepath.Join(c.dirBefore, filename)) - assert.NoError(c.t, err) - before := c.replaceRepoName(string(beforeBytes)) - after, err := os.ReadFile(filepath.Join(c.dirAfter, filename)) - assert.NoError(c.t, err) - assert.EqualValues(c.t, before, string(after)) - } - // // base.Repository // |