Browse code

Fix incorrect error type.

Signed-off-by: Liang-Chi Hsieh <viirya@gmail.com>

Liang-Chi Hsieh authored on 2014/12/15 18:26:00
Showing 1 changed files
... ...
@@ -90,7 +90,7 @@ func TestHttpsInfoRogueServerCert(t *testing.T) {
90 90
 		}
91 91
 
92 92
 		if !strings.Contains(err.Error(), errCaUnknown) {
93
-			t.Fatalf("Expected error: %s, got instead: %s", errBadCertificate, err)
93
+			t.Fatalf("Expected error: %s, got instead: %s", errCaUnknown, err)
94 94
 		}
95 95
 
96 96
 	})