From bc8e19ece1663d67f980c56612eb2423ae33eee6 Mon Sep 17 00:00:00 2001 From: singuliere <35190819+singuliere@users.noreply.github.com> Date: Thu, 10 Feb 2022 03:41:05 +0100 Subject: [PATCH] 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 Co-authored-by: Lunny Xiao --- integrations/dump_restore_test.go | 9 --------- 1 file changed, 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 //