aboutsummaryrefslogtreecommitdiffstats
path: root/test/ws_SUITE.erl
diff options
context:
space:
mode:
Diffstat (limited to 'test/ws_SUITE.erl')
-rw-r--r--test/ws_SUITE.erl4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/ws_SUITE.erl b/test/ws_SUITE.erl
index 06d4b3e..5f980d8 100644
--- a/test/ws_SUITE.erl
+++ b/test/ws_SUITE.erl
@@ -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) ->