aboutsummaryrefslogtreecommitdiffstats
path: root/test/handlers/loop_handler_body_h.erl
diff options
context:
space:
mode:
Diffstat (limited to 'test/handlers/loop_handler_body_h.erl')
-rw-r--r--test/handlers/loop_handler_body_h.erl6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/handlers/loop_handler_body_h.erl b/test/handlers/loop_handler_body_h.erl
index ac75773..096fb3d 100644
--- a/test/handlers/loop_handler_body_h.erl
+++ b/test/handlers/loop_handler_body_h.erl
@@ -11,12 +11,12 @@
init(Req, _) ->
self() ! timeout,
- {long_polling, Req, undefined, 5000, hibernate}.
+ {cowboy_loop, Req, undefined, 5000, hibernate}.
info(timeout, Req, State) ->
{ok, Body, Req2} = cowboy_req:body(Req),
100000 = byte_size(Body),
- {ok, cowboy_req:reply(200, Req2), State}.
+ {shutdown, cowboy_req:reply(200, Req2), State}.
-terminate({normal, shutdown}, _, _) ->
+terminate(shutdown, _, _) ->
ok.