mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 08:30:25 +08:00 
			
		
		
		
	Load label ID in NewLabels (#2045)
This commit is contained in:
		@@ -52,7 +52,7 @@ func TestNewLabels(t *testing.T) {
 | 
			
		||||
	}
 | 
			
		||||
	assert.NoError(t, NewLabels(labels...))
 | 
			
		||||
	for _, label := range labels {
 | 
			
		||||
		AssertExistsAndLoadBean(t, label)
 | 
			
		||||
		AssertExistsAndLoadBean(t, label, Cond("id = ?", label.ID))
 | 
			
		||||
	}
 | 
			
		||||
	CheckConsistencyFor(t, &Label{}, &Repository{})
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user