From 0b25277487a052279ec42218c265bbd67babca47 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 3f34779727ea7..3b07bfeedaf1f 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 //