diff options
author | Leorize <leorize+oss@disroot.org> | 2020-06-01 17:48:12 -0500 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2020-06-06 21:11:53 +0200 |
commit | 19ccc5fd8d7e187dde0f9190532d7a168bec9572 (patch) | |
tree | 7ceb090fb2181dd8b8403b91f827795a40cfb22b /tests/untestable | |
parent | 82092b3bb7ead1414f673ed7f43e9fa1dcf8c5f4 (diff) | |
download | Nim-19ccc5fd8d7e187dde0f9190532d7a168bec9572.tar.gz |
untestable/thttpclient_ssl: catch errors caused by the bad catergory
Previously the errors caused by `SSL_shutdown()` masked these, so now we catch them.
Diffstat (limited to 'tests/untestable')
-rw-r--r-- | tests/untestable/thttpclient_ssl.nim | 2 |
1 files changed, 1 insertions, 1 deletions
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 |