diff options
Diffstat (limited to 'test/handlers')
-rw-r--r-- | test/handlers/long_polling_h.erl | 2 | ||||
-rw-r--r-- | test/handlers/loop_handler_body_h.erl | 2 | ||||
-rw-r--r-- | test/handlers/loop_handler_timeout_h.erl | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/test/handlers/long_polling_h.erl b/test/handlers/long_polling_h.erl index 17afa0a..3dd0f77 100644 --- a/test/handlers/long_polling_h.erl +++ b/test/handlers/long_polling_h.erl @@ -11,7 +11,7 @@ init(Req, _) -> erlang:send_after(200, self(), timeout), - {cowboy_loop, Req, 2, 5000, hibernate}. + {cowboy_loop, Req, 2, hibernate}. info(timeout, Req, 0) -> %% @todo Why 102? diff --git a/test/handlers/loop_handler_body_h.erl b/test/handlers/loop_handler_body_h.erl index e0ea41b..cadb2d9 100644 --- a/test/handlers/loop_handler_body_h.erl +++ b/test/handlers/loop_handler_body_h.erl @@ -11,7 +11,7 @@ init(Req, _) -> self() ! timeout, - {cowboy_loop, Req, undefined, 5000, hibernate}. + {cowboy_loop, Req, undefined, hibernate}. info(timeout, Req0, State) -> {ok, Body, Req} = cowboy_req:read_body(Req0), diff --git a/test/handlers/loop_handler_timeout_h.erl b/test/handlers/loop_handler_timeout_h.erl index 6502a3a..1628074 100644 --- a/test/handlers/loop_handler_timeout_h.erl +++ b/test/handlers/loop_handler_timeout_h.erl @@ -12,7 +12,7 @@ init(Req, _) -> erlang:send_after(1000, self(), timeout), - {cowboy_loop, Req, undefined, 200, hibernate}. + {cowboy_loop, Req, undefined, hibernate}. info(timeout, Req, State) -> {stop, cowboy_req:reply(500, Req), State}. |