aboutsummaryrefslogtreecommitdiffstats
path: root/test/rfc7230_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/rfc7230_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/rfc7230_SUITE.erl')
-rw-r--r--test/rfc7230_SUITE.erl5
1 files changed, 4 insertions, 1 deletions
diff --git a/test/rfc7230_SUITE.erl b/test/rfc7230_SUITE.erl
index 3cfff12..b0ad323 100644
--- a/test/rfc7230_SUITE.erl
+++ b/test/rfc7230_SUITE.erl
@@ -57,7 +57,10 @@ host_other_port_https(_) ->
do_host_port(Transport, DefaultPort, HostHeaderPort) ->
{ok, OriginPid, OriginPort} = init_origin(Transport, http),
- {ok, ConnPid} = gun:open("localhost", OriginPort, #{transport => Transport}),
+ {ok, ConnPid} = gun:open("localhost", OriginPort, #{
+ transport => Transport,
+ tls_opts => [{verify, verify_none}]
+ }),
{ok, http} = gun:await_up(ConnPid),
%% Change the origin's port in the state to trigger the default port behavior.
_ = sys:replace_state(ConnPid, fun({StateName, StateData}) ->