mirror of
				https://github.com/go-gitea/gitea
				synced 2025-11-04 05:18:25 +00:00 
			
		
		
		
	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>
This commit is contained in:
		@@ -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
 | 
			
		||||
	//
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user