aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorjuhlig <[email protected]>2019-06-17 16:45:00 +0200
committerLoïc Hoguin <[email protected]>2019-06-19 13:58:28 +0200
commitb3695e08787679dfd7dbccbfd5cc407a6751dc2a (patch)
tree8a8388185fb0d3f9ef51e126931237348efab864 /test
parentb27dd725854dd016c05e2075f8ae99933a2903d8 (diff)
downloadranch-b3695e08787679dfd7dbccbfd5cc407a6751dc2a.tar.gz
ranch-b3695e08787679dfd7dbccbfd5cc407a6751dc2a.tar.bz2
ranch-b3695e08787679dfd7dbccbfd5cc407a6751dc2a.zip
Validate transport options
Diffstat (limited to 'test')
-rw-r--r--test/acceptor_SUITE.erl6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/acceptor_SUITE.erl b/test/acceptor_SUITE.erl
index b6ddea4..294b07e 100644
--- a/test/acceptor_SUITE.erl
+++ b/test/acceptor_SUITE.erl
@@ -94,8 +94,8 @@ groups() ->
misc_bad_transport(_) ->
doc("Reject invalid transport modules."),
- {error, badarg} = ranch:start_listener(misc_bad_transport,
- bad_transport, #{},
+ {error, {bad_transport, invalid_transport}} = ranch:start_listener(misc_bad_transport,
+ invalid_transport, #{},
echo_protocol, []),
ok.
@@ -1202,7 +1202,7 @@ supervisor_changed_options_restart(_) ->
{ok, [{send_timeout, 300001}]}
= inet:getopts(do_get_listener_socket(ListenerSupPid1), [send_timeout]),
%% Crash the listener_sup process, allow a short time for restart to succeed.
- %% We silence the excepted log events coming from the relevant supervisors.
+ %% We silence the expected log events coming from the relevant supervisors.
ListenerChilds = [ChildPid || {_, ChildPid, _, _} <- supervisor:which_children(ListenerSupPid1)],
FilterFun = fun (#{meta := #{pid := EventPid}}, _) ->
case lists:member(EventPid, ListenerChilds) of