From d65af69c2bb8035b13721cb6fc301361cc30f50c Mon Sep 17 00:00:00 2001 From: Giteabot Date: Thu, 9 Jan 2025 21:33:50 +0800 Subject: [PATCH] Fix pam auth test regression (#33169) (#33174) Backport #33169 by TheFox0x7 fixes: https://github.com/go-gitea/gitea/issues/33168 Co-authored-by: TheFox0x7 --- modules/auth/pam/pam_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/auth/pam/pam_test.go b/modules/auth/pam/pam_test.go index 7265b5d0c1..d4ab058ec7 100644 --- a/modules/auth/pam/pam_test.go +++ b/modules/auth/pam/pam_test.go @@ -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) }