From 2f74442f67a2539cd0fc1f9540af0313e7eb1c38 Mon Sep 17 00:00:00 2001 From: Lunny Xiao Date: Fri, 18 Oct 2019 15:23:17 +0800 Subject: [PATCH] fix test --- services/issue/label_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/issue/label_test.go b/services/issue/label_test.go index 1969372322706..065202894320a 100644 --- a/services/issue/label_test.go +++ b/services/issue/label_test.go @@ -24,7 +24,7 @@ func TestIssue_AddLabels(t *testing.T) { } for _, test := range tests { assert.NoError(t, models.PrepareTestDatabase()) - issue := models.AssertExistsAndLoadBean(t, &models.AccessMode{ID: test.issueID}).(*models.Issue) + issue := models.AssertExistsAndLoadBean(t, &models.Issue{ID: test.issueID}).(*models.Issue) labels := make([]*models.Label, len(test.labelIDs)) for i, labelID := range test.labelIDs { labels[i] = models.AssertExistsAndLoadBean(t, &models.Label{ID: labelID}).(*models.Label)