Fix pam auth test regression (#33169)

fixes: https://github.com/go-gitea/gitea/issues/33168
This commit is contained in:
TheFox0x7 2025-01-09 14:09:11 +01:00 committed by GitHub
parent 88366f280e
commit 68ca73b716
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -15,5 +15,5 @@ func TestPamAuth(t *testing.T) {
result, err := Auth("gitea", "user1", "false-pwd")
assert.Error(t, err)
assert.EqualError(t, err, "Authentication failure")
assert.Len(t, result)
assert.Empty(t, result)
}