forked from forgejo/forgejo
Load label ID in NewLabels (#2045)
This commit is contained in:
parent
f64c232953
commit
2559a34b97
4 changed files with 25 additions and 6 deletions
|
@ -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{})
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue