Skip to content

Commit

Permalink
Fix small-tests where they depended on the old ranch
Browse files Browse the repository at this point in the history
  • Loading branch information
NelsonVides committed Sep 19, 2022
1 parent 5edb731 commit 6e1dac5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions test/http_helper.erl
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ start(Port, Path, HandleFun) ->
application:ensure_all_started(cowboy),
Dispatch = cowboy_router:compile([{'_', [{Path, http_helper, HandleFun}]}]),
{ok, _} = cowboy:start_clear(http_helper_listener,
[{port, Port}, {num_acceptors, 200}],
#{env => #{dispatch => Dispatch}}).
#{socket_opts => [{port, Port}], num_acceptors => 200},
#{env => #{dispatch => Dispatch}}).

stop() ->
cowboy:stop_listener(http_helper_listener).
Expand Down
2 changes: 1 addition & 1 deletion test/mim_ct_rest.erl
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ init([BasicAuth]) ->
]),

{ok, _} = cowboy:start_clear(tests_listener,
[{port, 12000}, {num_acceptors, 5}],
#{socket_opts => [{port, 12000}], num_acceptors => 5},
#{env => #{dispatch => DispatchEJD}}),

{ok, #state{ basic_auth = list_to_binary(BasicAuth) }}.
Expand Down

0 comments on commit 6e1dac5

Please sign in to comment.