aboutsummaryrefslogtreecommitdiffstats
path: root/test/gun_SUITE.erl
diff options
context:
space:
mode:
Diffstat (limited to 'test/gun_SUITE.erl')
-rw-r--r--test/gun_SUITE.erl8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/gun_SUITE.erl b/test/gun_SUITE.erl
index 166089b..2c7b4b8 100644
--- a/test/gun_SUITE.erl
+++ b/test/gun_SUITE.erl
@@ -488,6 +488,14 @@ stream_info_http2(_) ->
{error, not_connected} = gun:stream_info(Pid, StreamRef),
gun:close(Pid).
+supervise_false(_) ->
+ doc("The supervise option allows starting without a supervisor."),
+ {ok, _, OriginPort} = init_origin(tcp, http),
+ {ok, Pid} = gun:open("localhost", OriginPort, #{supervise => false}),
+ {ok, http} = gun:await_up(Pid),
+ [] = [P || {_, P, _, _} <- supervisor:which_children(gun_sup), P =:= Pid],
+ ok.
+
transform_header_name(_) ->
doc("The transform_header_name option allows changing the case of header names."),
{ok, ListenSocket} = gen_tcp:listen(0, [binary, {active, false}]),