From 4e307c187419b8c745ca2aad2741ec328f3338bc 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 3535670859..a27da6d5c1 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