@@ -225,10 +225,10 @@ func DoTestDeliveryNonAtomic(t *testing.T, c module.StatusCollector, tgt module.
225225 return encodedID
226226}
227227
228- const DeliveryData = "A: 1\n " +
229- "B: 2\n " +
230- "\n " +
231- "foobar\n "
228+ const DeliveryData = "A: 1\r \ n " +
229+ "B: 2\r \ n " +
230+ "\r \ n " +
231+ "foobar\r \ n "
232232
233233func DoTestDeliveryErr (t * testing.T , tgt module.DeliveryTarget , from string , to []string ) (string , error ) {
234234 return DoTestDeliveryErrMeta (t , tgt , from , to , & module.MsgMetadata {})
@@ -241,7 +241,7 @@ func DoTestDeliveryErrMeta(t *testing.T, tgt module.DeliveryTarget, from string,
241241 encodedID := hex .EncodeToString (IDRaw [:])
242242 testCtx := context .Background ()
243243
244- body := buffer.MemoryBuffer {Slice : []byte ("foobar\n " )}
244+ body := buffer.MemoryBuffer {Slice : []byte ("foobar\r \ n " )}
245245 msgMeta .DontTraceSender = true
246246 msgMeta .ID = encodedID
247247 t .Log ("-- tgt.Start" , from )
@@ -318,8 +318,8 @@ func CheckMsgID(t *testing.T, msg *Msg, sender string, rcpt []string, id string)
318318 if ! reflect .DeepEqual (msg .RcptTo , rcpt ) {
319319 t .Errorf ("wrong recipients, want %v, got %v" , rcpt , msg .RcptTo )
320320 }
321- if string (msg .Body ) != "foobar\n " {
322- t .Errorf ("wrong body, want '%s', got '%s'" , "foobar" , string (msg .Body ))
321+ if string (msg .Body ) != "foobar\r \ n " {
322+ t .Errorf ("wrong body, want '%s', got '%s' (%v) " , "foobar\r \n " , string (msg .Body ), msg . Body )
323323 }
324324
325325 return msg .MsgMeta .ID
0 commit comments