From 5c6d082625f4454a97994f3035cf41b5dd25c6a7 Mon Sep 17 00:00:00 2001 From: Saravana Priyaa C R Date: Sun, 15 Mar 2026 22:12:28 +0530 Subject: [PATCH] Restore SMTP tests for Go 1.22 and keep original constant names --- pkg/notifications/smtp/smtp_test.go | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/pkg/notifications/smtp/smtp_test.go b/pkg/notifications/smtp/smtp_test.go index b4d724ad..c387e7e3 100644 --- a/pkg/notifications/smtp/smtp_test.go +++ b/pkg/notifications/smtp/smtp_test.go @@ -21,15 +21,13 @@ import ( ) const ( - nilConst = "nil" - testSMTPPort = 1025 testFrom = "test@localhost" testTo = "test.to@localhost" - testUsername = "username" - testPassword = "password" + testSMTPUsername = "username" + testSMTPPassword = "password" testNamespace = "default" ) @@ -111,8 +109,8 @@ func TestSMTP_Send(t *testing.T) { Namespace: testNamespace, }, Data: map[string][]byte{ - "username": []byte(testUsername), - "password": []byte(testPassword), + "username": []byte(testSMTPUsername), + "password": []byte(testSMTPPassword), }, }