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.erl11
1 files changed, 5 insertions, 6 deletions
diff --git a/test/ws_SUITE.erl b/test/ws_SUITE.erl
index e341e10..9cafd3c 100644
--- a/test/ws_SUITE.erl
+++ b/test/ws_SUITE.erl
@@ -15,7 +15,7 @@
-module(ws_SUITE).
-compile(export_all).
--import(cowboy_test, [config/2]).
+-import(ct_helper, [config/2]).
%% ct.
@@ -23,12 +23,9 @@ all() ->
[{group, autobahn}, {group, ws}].
groups() ->
- BaseTests = cowboy_test:all(?MODULE) -- [autobahn_fuzzingclient],
+ BaseTests = ct_helper:all(?MODULE) -- [autobahn_fuzzingclient],
[{autobahn, [], [autobahn_fuzzingclient]}, {ws, [parallel], BaseTests}].
-init_per_suite(Config) ->
- Config.
-
init_per_group(Name = autobahn, Config) ->
%% Some systems have it named pip2.
Out = os:cmd("pip show autobahntestsuite ; pip2 show autobahntestsuite"),
@@ -41,7 +38,9 @@ init_per_group(Name = autobahn, Config) ->
{skip, "Autobahn Test Suite not installed."};
_ ->
{ok, _} = cowboy:start_http(Name, 100, [{port, 33080}], [
- {env, [{dispatch, init_dispatch()}]}]),
+ {env, [{dispatch, init_dispatch()}]},
+ {compress, true}
+ ]),
Config
end;
init_per_group(Name = ws, Config) ->