summary refs log tree commit diff stats
path: root/tests/stdlib
diff options
context:
space:
mode:
authorLeorize <leorize+oss@disroot.org>2020-06-01 21:20:14 -0500
committerAndreas Rumpf <rumpf_a@web.de>2020-06-06 21:11:53 +0200
commit44d0b4bdfd95a420946d287adacd762bd12ce646 (patch)
tree0ccb5deabcdd2f9a68c10a54190d1c53ef5ddcb6 /tests/stdlib
parentd06e6eec79c68f8e9bf87c89fc770ca7722c4728 (diff)
downloadNim-44d0b4bdfd95a420946d287adacd762bd12ce646.tar.gz
thttpclient_ssl: be less specific
The error we're looking for is "certificate verify failed". The routine
that reports this will be different between openssl versions, so it
makes no sense to track the routine name as well.
Diffstat (limited to 'tests/stdlib')
-rw-r--r--tests/stdlib/thttpclient_ssl.nim3
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/stdlib/thttpclient_ssl.nim b/tests/stdlib/thttpclient_ssl.nim
index f06c1eddd..9872985e4 100644
--- a/tests/stdlib/thttpclient_ssl.nim
+++ b/tests/stdlib/thttpclient_ssl.nim
@@ -125,7 +125,6 @@ when not defined(windows):
         log "client: exception: " & msg
         # SSL_shutdown:shutdown while in init
         if not (msg.contains("alert number 48") or
-          msg.contains("routines:CONNECT_CR_CERT:certificate verify failed") or
-          msg.contains("routines:tls_process_server_certificate:certificate verify failed")):
+          msg.contains("certificate verify failed")):
           echo "CVerifyPeer exception: " & msg
           check(false)