Fix incorrect error type.
Signed-off-by: Liang-Chi Hsieh <viirya@gmail.com> Upstream-commit: bc4edbbe712a2d0fb839747814933916177daa74 Component: engine
This commit is contained in:
@ -90,7 +90,7 @@ func TestHttpsInfoRogueServerCert(t *testing.T) {
|
||||
}
|
||||
|
||||
if !strings.Contains(err.Error(), errCaUnknown) {
|
||||
t.Fatalf("Expected error: %s, got instead: %s", errBadCertificate, err)
|
||||
t.Fatalf("Expected error: %s, got instead: %s", errCaUnknown, err)
|
||||
}
|
||||
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user