From 44d0b4bdfd95a420946d287adacd762bd12ce646 Mon Sep 17 00:00:00 2001 From: Leorize Date: Mon, 1 Jun 2020 21:20:14 -0500 Subject: 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. --- tests/stdlib/thttpclient_ssl.nim | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'tests/stdlib') 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) -- cgit 1.4.1-2-gfad0