mirror of
https://github.com/wneessen/go-mail.git
synced 2024-11-21 13:20:49 +01:00
Fix newline character in test attachment string for Windows
Updated the base64-encoded string for attachments in the tests to reflect the correct newline character for Windows. This ensures that the test cases correctly validate the presence of attachments in the mail messages.
This commit is contained in:
parent
b63a3dab9a
commit
c9f8a2acdd
1 changed files with 5 additions and 5 deletions
|
@ -315,7 +315,7 @@ func TestMsgWriter_addFiles(t *testing.T) {
|
|||
}
|
||||
switch runtime.GOOS {
|
||||
case "windows":
|
||||
if !strings.Contains(buffer.String(), "VGhpcyBpcyBhIHRlc3QgYXR0YWNobWVudAo") {
|
||||
if !strings.Contains(buffer.String(), "VGhpcyBpcyBhIHRlc3QgYXR0YWNobWVudA0K") {
|
||||
t.Errorf("attachment not found in mail message. Mail: %s", buffer.String())
|
||||
}
|
||||
default:
|
||||
|
@ -348,7 +348,7 @@ func TestMsgWriter_addFiles(t *testing.T) {
|
|||
}
|
||||
switch runtime.GOOS {
|
||||
case "windows":
|
||||
if !strings.Contains(buffer.String(), "VGhpcyBpcyBhIHRlc3QgYXR0YWNobWVudAo") {
|
||||
if !strings.Contains(buffer.String(), "VGhpcyBpcyBhIHRlc3QgYXR0YWNobWVudA0K") {
|
||||
t.Errorf("attachment not found in mail message. Mail: %s", buffer.String())
|
||||
}
|
||||
default:
|
||||
|
@ -374,7 +374,7 @@ func TestMsgWriter_addFiles(t *testing.T) {
|
|||
}
|
||||
switch runtime.GOOS {
|
||||
case "windows":
|
||||
if !strings.Contains(buffer.String(), "VGhpcyBpcyBhIHRlc3QgYXR0YWNobWVudAo") {
|
||||
if !strings.Contains(buffer.String(), "VGhpcyBpcyBhIHRlc3QgYXR0YWNobWVudA0K") {
|
||||
t.Errorf("attachment not found in mail message. Mail: %s", buffer.String())
|
||||
}
|
||||
default:
|
||||
|
@ -429,7 +429,7 @@ func TestMsgWriter_addFiles(t *testing.T) {
|
|||
}
|
||||
switch runtime.GOOS {
|
||||
case "windows":
|
||||
if !strings.Contains(buffer.String(), "VGhpcyBpcyBhIHRlc3QgYXR0YWNobWVudAo") {
|
||||
if !strings.Contains(buffer.String(), "VGhpcyBpcyBhIHRlc3QgYXR0YWNobWVudA0K") {
|
||||
t.Errorf("attachment not found in mail message. Mail: %s", buffer.String())
|
||||
}
|
||||
default:
|
||||
|
@ -469,7 +469,7 @@ func TestMsgWriter_addFiles(t *testing.T) {
|
|||
}
|
||||
switch runtime.GOOS {
|
||||
case "windows":
|
||||
if !strings.Contains(buffer.String(), "VGhpcyBpcyBhIHRlc3QgYXR0YWNobWVudAo") {
|
||||
if !strings.Contains(buffer.String(), "VGhpcyBpcyBhIHRlc3QgYXR0YWNobWVudA0K") {
|
||||
t.Errorf("attachment not found in mail message. Mail: %s", buffer.String())
|
||||
}
|
||||
default:
|
||||
|
|
Loading…
Reference in a new issue