aboutsummaryrefslogtreecommitdiffstats
path: root/test/ws_SUITE.erl
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2013-03-02 14:38:10 +0100
committerLoïc Hoguin <[email protected]>2013-03-02 14:39:05 +0100
commit0ba06578f2c0c100797aac34d0e8cca7fd8a8ed7 (patch)
tree2234fa55e9ee2b3b4bfbc2bdf6759c563a9025ea /test/ws_SUITE.erl
parent8dd6ce83571b54a4cc7fe571c98afdbec57bbc31 (diff)
downloadcowboy-0ba06578f2c0c100797aac34d0e8cca7fd8a8ed7.tar.gz
cowboy-0ba06578f2c0c100797aac34d0e8cca7fd8a8ed7.tar.bz2
cowboy-0ba06578f2c0c100797aac34d0e8cca7fd8a8ed7.zip
Use random ports for tests
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) ->