summaryrefslogtreecommitdiffstats
path: root/routers
diff options
context:
space:
mode:
authorKN4CK3R <admin@oldschoolhack.me>2021-06-07 07:27:09 +0200
committerGitHub <noreply@github.com>2021-06-07 07:27:09 +0200
commit3607f79d7869046d919fed05a21b55b6e61df1fa (patch)
tree9a176a4d5b67ac3a81ae210e9164d81959221ce0 /routers
parent51775f65bc933843199320b040186703a2bb9f51 (diff)
downloadgitea-3607f79d7869046d919fed05a21b55b6e61df1fa.tar.gz
gitea-3607f79d7869046d919fed05a21b55b6e61df1fa.zip
Fixed assert statements. (#16089)
Diffstat (limited to 'routers')
-rw-r--r--routers/repo/wiki_test.go2
-rw-r--r--routers/user/home_test.go4
2 files changed, 3 insertions, 3 deletions
diff --git a/routers/repo/wiki_test.go b/routers/repo/wiki_test.go
index 4b28a5af86..8934a6619f 100644
--- a/routers/repo/wiki_test.go
+++ b/routers/repo/wiki_test.go
@@ -64,7 +64,7 @@ func assertPagesMetas(t *testing.T, expectedNames []string, metas interface{}) {
if !assert.True(t, ok) {
return
}
- if !assert.EqualValues(t, len(expectedNames), len(pageMetas)) {
+ if !assert.Len(t, pageMetas, len(expectedNames)) {
return
}
for i, pageMeta := range pageMetas {
diff --git a/routers/user/home_test.go b/routers/user/home_test.go
index ecc02fd33a..b0109c354f 100644
--- a/routers/user/home_test.go
+++ b/routers/user/home_test.go
@@ -33,9 +33,9 @@ func TestArchivedIssues(t *testing.T) {
IsArchived[repo.ID] = repo.IsArchived
NumIssues[repo.ID] = repo.NumIssues
}
- assert.EqualValues(t, false, IsArchived[50])
+ assert.False(t, IsArchived[50])
assert.EqualValues(t, 1, NumIssues[50])
- assert.EqualValues(t, true, IsArchived[51])
+ assert.True(t, IsArchived[51])
assert.EqualValues(t, 1, NumIssues[51])
// Act