mirror of
https://github.com/ninenines/cowboy.git
synced 2025-07-14 12:20:24 +00:00
Use random ports for tests
This commit is contained in:
parent
8dd6ce8357
commit
0ba06578f2
2 changed files with 18 additions and 18 deletions
|
@ -75,10 +75,10 @@ end_per_suite(_Config) ->
|
|||
ok.
|
||||
|
||||
init_per_group(ws, Config) ->
|
||||
Port = 33080,
|
||||
cowboy:start_http(ws, 100, [{port, Port}], [
|
||||
cowboy:start_http(ws, 100, [{port, 0}], [
|
||||
{env, [{dispatch, init_dispatch()}]}
|
||||
]),
|
||||
Port = ranch:get_port(ws),
|
||||
[{port, Port}|Config].
|
||||
|
||||
end_per_group(Listener, _Config) ->
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue