From 0ba06578f2c0c100797aac34d0e8cca7fd8a8ed7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Hoguin?= Date: Sat, 2 Mar 2013 14:38:10 +0100 Subject: Use random ports for tests --- test/ws_SUITE.erl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test/ws_SUITE.erl') 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) -> -- cgit v1.2.3