aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2019-07-25 10:40:12 +0200
committerLoïc Hoguin <[email protected]>2019-07-25 10:40:12 +0200
commit293ca3d58f64cd716e8b1f84330c29f229d5a4f2 (patch)
tree1fdc9cf90f18dd6228c48a9a9e9b108ba3d2f0c4 /test
parent9e73a972b73a67dc5b8f23f99061f20713148e4e (diff)
downloadgun-293ca3d58f64cd716e8b1f84330c29f229d5a4f2.tar.gz
gun-293ca3d58f64cd716e8b1f84330c29f229d5a4f2.tar.bz2
gun-293ca3d58f64cd716e8b1f84330c29f229d5a4f2.zip
Rename ws_echo test handler to ws_echo_h
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 => #{