From 19ccc5fd8d7e187dde0f9190532d7a168bec9572 Mon Sep 17 00:00:00 2001 From: Leorize Date: Mon, 1 Jun 2020 17:48:12 -0500 Subject: [PATCH] untestable/thttpclient_ssl: catch errors caused by the bad catergory Previously the errors caused by `SSL_shutdown()` masked these, so now we catch them. --- tests/untestable/thttpclient_ssl.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/untestable/thttpclient_ssl.nim b/tests/untestable/thttpclient_ssl.nim index 353567085..a27da6d5c 100644 --- a/tests/untestable/thttpclient_ssl.nim +++ b/tests/untestable/thttpclient_ssl.nim @@ -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