mirror of
https://github.com/wneessen/go-mail.git
synced 2024-11-22 13:50:49 +01:00
fix: tests after rebase
This commit is contained in:
parent
ee00ae2dee
commit
e56a563286
1 changed files with 5 additions and 5 deletions
|
@ -620,7 +620,7 @@ func TestMsgWriter_writeBody(t *testing.T) {
|
||||||
buffer := bytes.NewBuffer(nil)
|
buffer := bytes.NewBuffer(nil)
|
||||||
msgwriter.writer = buffer
|
msgwriter.writer = buffer
|
||||||
message := testMessage(t)
|
message := testMessage(t)
|
||||||
msgwriter.writeBody(message.parts[0].writeFunc, NoEncoding)
|
msgwriter.writeBody(message.parts[0].writeFunc, NoEncoding, false)
|
||||||
if msgwriter.err != nil {
|
if msgwriter.err != nil {
|
||||||
t.Errorf("writeBody failed to write: %s", msgwriter.err)
|
t.Errorf("writeBody failed to write: %s", msgwriter.err)
|
||||||
}
|
}
|
||||||
|
@ -628,7 +628,7 @@ func TestMsgWriter_writeBody(t *testing.T) {
|
||||||
t.Run("writeBody on NoEncoding fails on write", func(t *testing.T) {
|
t.Run("writeBody on NoEncoding fails on write", func(t *testing.T) {
|
||||||
msgwriter.writer = failReadWriteSeekCloser{}
|
msgwriter.writer = failReadWriteSeekCloser{}
|
||||||
message := testMessage(t)
|
message := testMessage(t)
|
||||||
msgwriter.writeBody(message.parts[0].writeFunc, NoEncoding)
|
msgwriter.writeBody(message.parts[0].writeFunc, NoEncoding, false)
|
||||||
if msgwriter.err == nil {
|
if msgwriter.err == nil {
|
||||||
t.Errorf("writeBody succeeded, expected error")
|
t.Errorf("writeBody succeeded, expected error")
|
||||||
}
|
}
|
||||||
|
@ -642,7 +642,7 @@ func TestMsgWriter_writeBody(t *testing.T) {
|
||||||
writeFunc := func(io.Writer) (int64, error) {
|
writeFunc := func(io.Writer) (int64, error) {
|
||||||
return 0, errors.New("intentional write failure")
|
return 0, errors.New("intentional write failure")
|
||||||
}
|
}
|
||||||
msgwriter.writeBody(writeFunc, NoEncoding)
|
msgwriter.writeBody(writeFunc, NoEncoding, false)
|
||||||
if msgwriter.err == nil {
|
if msgwriter.err == nil {
|
||||||
t.Errorf("writeBody succeeded, expected error")
|
t.Errorf("writeBody succeeded, expected error")
|
||||||
}
|
}
|
||||||
|
@ -653,7 +653,7 @@ func TestMsgWriter_writeBody(t *testing.T) {
|
||||||
t.Run("writeBody Quoted-Printable fails on write", func(t *testing.T) {
|
t.Run("writeBody Quoted-Printable fails on write", func(t *testing.T) {
|
||||||
msgwriter.writer = failReadWriteSeekCloser{}
|
msgwriter.writer = failReadWriteSeekCloser{}
|
||||||
message := testMessage(t)
|
message := testMessage(t)
|
||||||
msgwriter.writeBody(message.parts[0].writeFunc, EncodingQP)
|
msgwriter.writeBody(message.parts[0].writeFunc, EncodingQP, false)
|
||||||
if msgwriter.err == nil {
|
if msgwriter.err == nil {
|
||||||
t.Errorf("writeBody succeeded, expected error")
|
t.Errorf("writeBody succeeded, expected error")
|
||||||
}
|
}
|
||||||
|
@ -667,7 +667,7 @@ func TestMsgWriter_writeBody(t *testing.T) {
|
||||||
writeFunc := func(io.Writer) (int64, error) {
|
writeFunc := func(io.Writer) (int64, error) {
|
||||||
return 0, errors.New("intentional write failure")
|
return 0, errors.New("intentional write failure")
|
||||||
}
|
}
|
||||||
msgwriter.writeBody(writeFunc, EncodingQP)
|
msgwriter.writeBody(writeFunc, EncodingQP, false)
|
||||||
if msgwriter.err == nil {
|
if msgwriter.err == nil {
|
||||||
t.Errorf("writeBody succeeded, expected error")
|
t.Errorf("writeBody succeeded, expected error")
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue