aboutsummaryrefslogtreecommitdiffstats
path: root/test/gun_SUITE.erl
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2022-09-12 14:24:19 +0200
committerLoïc Hoguin <[email protected]>2022-09-12 14:24:19 +0200
commit9e6d0f68afc30037ce3e6d10551a0bd7a9b1236a (patch)
treededaf5bf7748149cd69c92f1478baa09ee2702b5 /test/gun_SUITE.erl
parent9afe0275298860a702a8856f6ffd5ca8dec962f2 (diff)
downloadgun-9e6d0f68afc30037ce3e6d10551a0bd7a9b1236a.tar.gz
gun-9e6d0f68afc30037ce3e6d10551a0bd7a9b1236a.tar.bz2
gun-9e6d0f68afc30037ce3e6d10551a0bd7a9b1236a.zip
Silence certs related ssl warnings in test suites
Diffstat (limited to 'test/gun_SUITE.erl')
-rw-r--r--test/gun_SUITE.erl8
1 files changed, 6 insertions, 2 deletions
diff --git a/test/gun_SUITE.erl b/test/gun_SUITE.erl
index 00b8eab..9112c5d 100644
--- a/test/gun_SUITE.erl
+++ b/test/gun_SUITE.erl
@@ -460,12 +460,16 @@ retry_timeout(_) ->
server_name_indication_custom(_) ->
doc("Ensure a custom server_name_indication is accepted."),
do_server_name_indication("localhost", net_adm:localhost(), #{
- tls_opts => [{server_name_indication, net_adm:localhost()}]
+ tls_opts => [
+ {verify, verify_none},
+ {server_name_indication, net_adm:localhost()}]
}).
server_name_indication_default(_) ->
doc("Ensure a default server_name_indication is accepted."),
- do_server_name_indication(net_adm:localhost(), net_adm:localhost(), #{}).
+ do_server_name_indication(net_adm:localhost(), net_adm:localhost(), #{
+ tls_opts => [{verify, verify_none}]
+ }).
do_server_name_indication(Host, Expected, GunOpts) ->
Self = self(),