untestable/thttpclient_ssl: catch errors caused by the bad catergory

Previously the errors caused by `SSL_shutdown()` masked these, so now we
catch them.
This commit is contained in:
Leorize
2020-06-01 17:48:12 -05:00
parent 893b6176a5
commit 4e307c1874

View File

@@ -106,7 +106,7 @@ template evaluate(exception_msg: string, category: Category, desc: string) =
exception_msg == "SSL Certificate check failed." or
exception_msg.contains("certificate verify failed") or
exception_msg.contains("key too small") or
exception_msg.contains "shutdown while in init", exception_msg
exception_msg.contains "alert handshake failure", exception_msg
else:
# this is unexpected