From ce28b4d3c1a338ebc7ec343a71832ea63d12db4d Mon Sep 17 00:00:00 2001 From: TheFox0x7 Date: Thu, 9 Jan 2025 11:27:32 +0100 Subject: [PATCH] fix: pam auth regression --- 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 7265b5d0c1507..d4ab058ec7878 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) }