aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2011-11-28 09:14:07 +0100
committerLoïc Hoguin <[email protected]>2011-11-28 09:14:07 +0100
commitad87fee0affb13ce1d5a362b237a7030b9822845 (patch)
tree71f135c09e7be267c327da4e96bd5a7e47256133 /test
parent64a40cb479e45226c3498133c4e198a6dc35a3f8 (diff)
downloadcowboy-ad87fee0affb13ce1d5a362b237a7030b9822845.tar.gz
cowboy-ad87fee0affb13ce1d5a362b237a7030b9822845.tar.bz2
cowboy-ad87fee0affb13ce1d5a362b237a7030b9822845.zip
Fix a websocket test handler that was throwing an unwanted error
The test still worked because we expect the websocket connection to fail, but it didn't fail exactly the way we wanted it to.
Diffstat (limited to 'test')
-rw-r--r--test/websocket_handler_init_shutdown.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/websocket_handler_init_shutdown.erl b/test/websocket_handler_init_shutdown.erl
index 2d52cbd..aa9e056 100644
--- a/test/websocket_handler_init_shutdown.erl
+++ b/test/websocket_handler_init_shutdown.erl
@@ -17,7 +17,7 @@ terminate(_Req, _State) ->
exit(badarg).
websocket_init(_TransportName, Req, _Opts) ->
- Req2 = cowboy_http_req:reply(403, Req),
+ {ok, Req2} = cowboy_http_req:reply(403, Req),
{shutdown, Req2}.
websocket_handle(_Frame, _Req, _State) ->