Skip to content

Commit

Permalink
tests: remove redundant comparison in repo dump/restore (go-gitea#18660)
Browse files Browse the repository at this point in the history
It is a leftover forgotten in go-gitea#18621

Signed-off-by: singuliere <[email protected]>

Co-authored-by: Lunny Xiao <[email protected]>
  • Loading branch information
2 people authored and Stelios Malathouras committed Mar 28, 2022
1 parent 51b3919 commit 0b25277
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions integrations/dump_restore_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
//
Expand Down

0 comments on commit 0b25277

Please sign in to comment.