mirror of
https://github.com/go-gitea/gitea.git
synced 2026-08-13 02:35:27 +00:00
fix lint
This commit is contained in:
@@ -4,8 +4,8 @@
|
||||
package repo
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"net/http"
|
||||
"strconv"
|
||||
"testing"
|
||||
|
||||
"code.gitea.io/gitea/models/db"
|
||||
@@ -29,7 +29,7 @@ func TestTestHook(t *testing.T) {
|
||||
assert.NoError(t, db.Insert(t.Context(), hook))
|
||||
|
||||
ctx, _ := contexttest.MockAPIContext(t, "user2/repo1/wiki/_pages")
|
||||
ctx.SetPathParam("id", fmt.Sprintf("%d", hook.ID))
|
||||
ctx.SetPathParam("id", strconv.FormatInt(hook.ID, 10))
|
||||
contexttest.LoadRepo(t, ctx, 1)
|
||||
contexttest.LoadRepoCommit(t, ctx)
|
||||
contexttest.LoadUser(t, ctx, 2)
|
||||
|
||||
Reference in New Issue
Block a user