Browse Source

fix the fuzz test test

flashmob 8 years ago
parent
commit
53a920d6be
1 changed files with 2 additions and 2 deletions
  1. 2 2
      fuzz_test.go

+ 2 - 2
fuzz_test.go

@@ -187,7 +187,7 @@ func TestFuzz2(t *testing.T) {
 func TestFuzz3(t *testing.T) {
 func TestFuzz3(t *testing.T) {
 	isFuzzDebug = true
 	isFuzzDebug = true
 	result := Fuzz([]byte("DATA\r\n"))
 	result := Fuzz([]byte("DATA\r\n"))
-	if result != 1 {
+	if result != 0 {
 		t.Error("Fuzz test did not return 1")
 		t.Error("Fuzz test did not return 1")
 	}
 	}
 
 
@@ -196,7 +196,7 @@ func TestFuzz3(t *testing.T) {
 func TestFuzz4(t *testing.T) {
 func TestFuzz4(t *testing.T) {
 	isFuzzDebug = true
 	isFuzzDebug = true
 	result := Fuzz([]byte("MAIL from: <\r"))
 	result := Fuzz([]byte("MAIL from: <\r"))
-	if result != 1 {
+	if result != 0 {
 		t.Error("Fuzz test did not return 1")
 		t.Error("Fuzz test did not return 1")
 	}
 	}