aboutsummaryrefslogtreecommitdiffstats
path: root/modules/auth/pam
diff options
context:
space:
mode:
Diffstat (limited to 'modules/auth/pam')
-rw-r--r--modules/auth/pam/pam_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/auth/pam/pam_test.go b/modules/auth/pam/pam_test.go
index eafc9bc3db..fa16ff0fe7 100644
--- a/modules/auth/pam/pam_test.go
+++ b/modules/auth/pam/pam_test.go
@@ -15,6 +15,6 @@ import (
func TestPamAuth(t *testing.T) {
result, err := Auth("gitea", "user1", "false-pwd")
assert.Error(t, err)
- assert.EqualValues(t, "Authentication failure", err.Error())
+ assert.EqualError(t, err, "Authentication failure")
assert.Len(t, result, 0)
}