fix go vet error (#3740)
This commit is contained in:
parent
36ea53332d
commit
45d1fc03cb
2 changed files with 9 additions and 9 deletions
|
@ -32,7 +32,7 @@ func TestInitializeLabels(t *testing.T) {
|
|||
ctx := test.MockContext(t, "user2/repo1/labels/initialize")
|
||||
test.LoadUser(t, ctx, 2)
|
||||
test.LoadRepo(t, ctx, 2)
|
||||
InitializeLabels(ctx, auth.InitializeLabelsForm{"Default"})
|
||||
InitializeLabels(ctx, auth.InitializeLabelsForm{TemplateName: "Default"})
|
||||
assert.EqualValues(t, http.StatusFound, ctx.Resp.Status())
|
||||
models.AssertExistsAndLoadBean(t, &models.Label{
|
||||
RepoID: 2,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue