forked from kevadesu/forgejo
Fixed assert statements. (#16089)
This commit is contained in:
parent
51775f65bc
commit
3607f79d78
56 changed files with 227 additions and 228 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue