1
1
mirror of https://github.com/go-gitea/gitea synced 2025-07-22 18:28:37 +00:00

Fixed assert statements. (#16089)

This commit is contained in:
KN4CK3R
2021-06-07 07:27:09 +02:00
committed by GitHub
parent 51775f65bc
commit 3607f79d78
56 changed files with 227 additions and 228 deletions

View File

@@ -54,7 +54,7 @@ func TestComplexity_Generate(t *testing.T) {
for i := 0; i < maxCount; i++ {
pwd, err := Generate(pwdLen)
assert.NoError(t, err)
assert.Equal(t, pwdLen, len(pwd))
assert.Len(t, pwd, pwdLen)
assert.True(t, IsComplexEnough(pwd), "Failed complexities with modes %+v for generated: %s", modes, pwd)
}
}