aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/event_SUITE.erl2
-rw-r--r--test/gun_SUITE.erl2
-rw-r--r--test/handlers/ws_echo_h.erl (renamed from test/handlers/ws_echo.erl)2
-rw-r--r--test/ws_SUITE.erl2
4 files changed, 4 insertions, 4 deletions
diff --git a/test/event_SUITE.erl b/test/event_SUITE.erl
index 3535513..79416f3 100644
--- a/test/event_SUITE.erl
+++ b/test/event_SUITE.erl
@@ -50,7 +50,7 @@ init_per_suite(Config) ->
{"/push", push_h, []},
{"/stream", stream_h, []},
{"/trailers", trailers_h, []},
- {"/ws", ws_echo, []}
+ {"/ws", ws_echo_h, []}
]}])
}},
{ok, _} = cowboy:start_clear({?MODULE, tcp}, [], ProtoOpts),
diff --git a/test/gun_SUITE.erl b/test/gun_SUITE.erl
index 6a01cf6..57d0bf1 100644
--- a/test/gun_SUITE.erl
+++ b/test/gun_SUITE.erl
@@ -134,7 +134,7 @@ detect_owner_down_unexpected(_) ->
detect_owner_down_ws(_) ->
Name = name(),
{ok, _} = cowboy:start_clear(Name, [], #{env => #{
- dispatch => cowboy_router:compile([{'_', [{"/", ws_echo, []}]}])
+ dispatch => cowboy_router:compile([{'_', [{"/", ws_echo_h, []}]}])
}}),
Port = ranch:get_port(Name),
Self = self(),
diff --git a/test/handlers/ws_echo.erl b/test/handlers/ws_echo_h.erl
index efdc204..692e6a6 100644
--- a/test/handlers/ws_echo.erl
+++ b/test/handlers/ws_echo_h.erl
@@ -1,6 +1,6 @@
%% Feel free to use, reuse and abuse the code in this file.
--module(ws_echo).
+-module(ws_echo_h).
-export([init/2]).
-export([websocket_handle/2]).
diff --git a/test/ws_SUITE.erl b/test/ws_SUITE.erl
index 1a48b83..5cc50ec 100644
--- a/test/ws_SUITE.erl
+++ b/test/ws_SUITE.erl
@@ -29,7 +29,7 @@ groups() ->
init_per_suite(Config) ->
Routes = [
- {"/", ws_echo, []},
+ {"/", ws_echo_h, []},
{"/reject", ws_reject_h, []}
],
{ok, _} = cowboy:start_clear(ws, [], #{env => #{