Browse Source

don't output email in test

flashmob 6 năm trước cách đây
mục cha
commit
6f3c25490a
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  1. 2 2
      mail/mime/mime_test.go

+ 2 - 2
mail/mime/mime_test.go

@@ -539,14 +539,14 @@ func TestNestedEmail(t *testing.T) {
 	if err := p.mime(nil, ""); err != nil && err != io.EOF {
 		t.Error(err)
 	}
-	output := email
+	//output := email
 	for part := range p.Parts {
 		//output = replaceAtIndex(output, '#', p.Parts[part].StartingPos)
 		//output = replaceAtIndex(output, '&', p.Parts[part].StartingPosBody)
 		//output = replaceAtIndex(output, '*', p.Parts[part].EndingPosBody)
 		fmt.Println(p.Parts[part].Node + "  " + strconv.Itoa(int(p.Parts[part].StartingPos)) + "  " + strconv.Itoa(int(p.Parts[part].StartingPosBody)) + "  " + strconv.Itoa(int(p.Parts[part].EndingPosBody)))
 	}
-	fmt.Print(output)
+	//fmt.Print(output)
 	//fmt.Println(strings.Index(output, "--D7F------------D7FD5A0B8AB9C65CCDBFA872--"))
 	i := 1
 	_ = i