From ad87fee0affb13ce1d5a362b237a7030b9822845 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Hoguin?= Date: Mon, 28 Nov 2011 09:14:07 +0100 Subject: 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. --- test/websocket_handler_init_shutdown.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/websocket_handler_init_shutdown.erl') 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) -> -- cgit v1.2.3