aboutsummaryrefslogtreecommitdiffstats
path: root/test/event_SUITE.erl
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2024-03-14 15:41:30 +0100
committerLoïc Hoguin <[email protected]>2024-03-14 15:41:30 +0100
commit8b5f1609faffcf1166ca54c08df4ca9216c51993 (patch)
tree8360c67d59714c1641764debc2c074e4eaa90604 /test/event_SUITE.erl
parent5e177270a2be530bbec55381d0fe66a252c3a998 (diff)
downloadgun-8b5f1609faffcf1166ca54c08df4ca9216c51993.tar.gz
gun-8b5f1609faffcf1166ca54c08df4ca9216c51993.tar.bz2
gun-8b5f1609faffcf1166ca54c08df4ca9216c51993.zip
Use public_key:cacerts_get/0 when possible
Also "fix" many TLS test failures due to yet more changes in the default options for TLS. Also small changes to make Dialyzer happy.
Diffstat (limited to 'test/event_SUITE.erl')
-rw-r--r--test/event_SUITE.erl4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/event_SUITE.erl b/test/event_SUITE.erl
index e7def6e..81cdf09 100644
--- a/test/event_SUITE.erl
+++ b/test/event_SUITE.erl
@@ -55,7 +55,9 @@ init_per_suite(Config) ->
},
{ok, _} = cowboy:start_clear({?MODULE, tcp}, [], ProtoOpts),
TCPOriginPort = ranch:get_port({?MODULE, tcp}),
- {ok, _} = cowboy:start_tls({?MODULE, tls}, ct_helper:get_certs_from_ets(), ProtoOpts),
+ {ok, _} = cowboy:start_tls({?MODULE, tls},
+ [{fail_if_no_peer_cert, false}|ct_helper:get_certs_from_ets()],
+ ProtoOpts),
TLSOriginPort = ranch:get_port({?MODULE, tls}),
[{tcp_origin_port, TCPOriginPort}, {tls_origin_port, TLSOriginPort}|Config].