Restore SMTP tests for Go 1.22 and keep original constant names

This commit is contained in:
Saravana Priyaa C R 2026-03-15 22:12:28 +05:30
parent 1186f93c14
commit 5c6d082625
1 changed files with 4 additions and 6 deletions

View File

@ -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),
},
}