Load label ID in NewLabels (#2045)

This commit is contained in:
Ethan Koenig authored and Lunny Xiao committed 2017-06-25 14:15:09 +08:00
1 parent f64c232953
commit 2559a34b97
4 files changed
+25 -6

No files matched your search

+1 -1
View File
@@ -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{})
}