summaryrefslogtreecommitdiffstats
path: root/services/context
diff options
context:
space:
mode:
authorTheFox0x7 <thefox0x7@gmail.com>2024-07-30 21:41:10 +0200
committerEarl Warren <earl-warren@noreply.codeberg.org>2024-07-30 21:41:10 +0200
commit4de909747bdf322bbb37d500b9705d7a3a050b78 (patch)
tree62dad5d457c227628877d235f0105db9ae4bc200 /services/context
parentMerge pull request 'Implement external release assets' (#1445) from maltejur/... (diff)
downloadforgejo-4de909747bdf322bbb37d500b9705d7a3a050b78.tar.xz
forgejo-4de909747bdf322bbb37d500b9705d7a3a050b78.zip
Add testifylint to lint checks (#4535)
go-require lint is ignored for now Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/4535 Reviewed-by: Gusted <gusted@noreply.codeberg.org> Co-authored-by: TheFox0x7 <thefox0x7@gmail.com> Co-committed-by: TheFox0x7 <thefox0x7@gmail.com>
Diffstat (limited to 'services/context')
-rw-r--r--services/context/api_test.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/services/context/api_test.go b/services/context/api_test.go
index 911a49949e..6064fee1c3 100644
--- a/services/context/api_test.go
+++ b/services/context/api_test.go
@@ -11,6 +11,7 @@ import (
"code.gitea.io/gitea/modules/setting"
"github.com/stretchr/testify/assert"
+ "github.com/stretchr/testify/require"
)
func TestGenAPILinks(t *testing.T) {
@@ -38,7 +39,7 @@ func TestGenAPILinks(t *testing.T) {
for req, response := range kases {
u, err := url.Parse(setting.AppURL + req)
- assert.NoError(t, err)
+ require.NoError(t, err)
p := u.Query().Get("page")
curPage, _ := strconv.Atoi(p)