aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/websocket_echo_handler.erl2
-rw-r--r--test/websocket_handler.erl2
-rw-r--r--test/websocket_handler_init_shutdown.erl2
-rw-r--r--test/ws_timeout_hibernate_handler.erl2
4 files changed, 4 insertions, 4 deletions
diff --git a/test/websocket_echo_handler.erl b/test/websocket_echo_handler.erl
index 949e8a6..926b51d 100644
--- a/test/websocket_echo_handler.erl
+++ b/test/websocket_echo_handler.erl
@@ -8,7 +8,7 @@
websocket_info/3, websocket_terminate/3]).
init(_Any, _Req, _Opts) ->
- {upgrade, protocol, cowboy_http_websocket}.
+ {upgrade, protocol, cowboy_websocket}.
handle(_Req, _State) ->
exit(badarg).
diff --git a/test/websocket_handler.erl b/test/websocket_handler.erl
index 1430890..caf4828 100644
--- a/test/websocket_handler.erl
+++ b/test/websocket_handler.erl
@@ -8,7 +8,7 @@
websocket_info/3, websocket_terminate/3]).
init(_Any, _Req, _Opts) ->
- {upgrade, protocol, cowboy_http_websocket}.
+ {upgrade, protocol, cowboy_websocket}.
handle(_Req, _State) ->
exit(badarg).
diff --git a/test/websocket_handler_init_shutdown.erl b/test/websocket_handler_init_shutdown.erl
index 371c34b..5fdfba3 100644
--- a/test/websocket_handler_init_shutdown.erl
+++ b/test/websocket_handler_init_shutdown.erl
@@ -8,7 +8,7 @@
websocket_info/3, websocket_terminate/3]).
init(_Any, _Req, _Opts) ->
- {upgrade, protocol, cowboy_http_websocket}.
+ {upgrade, protocol, cowboy_websocket}.
handle(_Req, _State) ->
exit(badarg).
diff --git a/test/ws_timeout_hibernate_handler.erl b/test/ws_timeout_hibernate_handler.erl
index 871a686..ac6ee4f 100644
--- a/test/ws_timeout_hibernate_handler.erl
+++ b/test/ws_timeout_hibernate_handler.erl
@@ -8,7 +8,7 @@
websocket_info/3, websocket_terminate/3]).
init(_Any, _Req, _Opts) ->
- {upgrade, protocol, cowboy_http_websocket}.
+ {upgrade, protocol, cowboy_websocket}.
handle(_Req, _State) ->
exit(badarg).