diff options
author | Lunny Xiao <xiaolunwen@gmail.com> | 2019-09-24 21:22:39 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-09-24 21:22:39 +0800 |
commit | 29dda47cbbb6da148dbd3412463dc979deffcbfa (patch) | |
tree | fc627eb70613381641235684b342e072d1aeb0eb /models/issue_label_test.go | |
parent | 7cccada51eb925e7acfc90aae26661afd847d8f4 (diff) | |
download | gitea-29dda47cbbb6da148dbd3412463dc979deffcbfa.tar.gz gitea-29dda47cbbb6da148dbd3412463dc979deffcbfa.zip |
Fix label count (#8267)
* fix label count
* fix vendor
* fix import order
* update xorm to fix bug
* fix tests
* fix mssql bug
Diffstat (limited to 'models/issue_label_test.go')
-rw-r--r-- | models/issue_label_test.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/models/issue_label_test.go b/models/issue_label_test.go index 5cdc059cff..3cf6cc0e57 100644 --- a/models/issue_label_test.go +++ b/models/issue_label_test.go @@ -205,6 +205,7 @@ func TestNewIssueLabel(t *testing.T) { LabelID: label.ID, Content: "1", }) + label = AssertExistsAndLoadBean(t, &Label{ID: 2}).(*Label) assert.EqualValues(t, prevNumIssues+1, label.NumIssues) // re-add existing IssueLabel |