mirror of
https://github.com/ninenines/cowboy.git
synced 2025-07-14 20:30:23 +00:00
Fix broken tests in loop_handler_SUITE
This commit is contained in:
parent
fb13e5c9e9
commit
d41f2914b0
2 changed files with 6 additions and 5 deletions
|
@ -14,8 +14,9 @@ init(Req, _) ->
|
|||
{cowboy_loop, Req, 2, hibernate}.
|
||||
|
||||
info(timeout, Req, 0) ->
|
||||
%% @todo Why 102?
|
||||
{stop, cowboy_req:reply(102, Req), 0};
|
||||
%% Send an unused status code to make sure there's no
|
||||
%% conflict with whatever Cowboy may send itself.
|
||||
{stop, cowboy_req:reply(<<"299 OK!">>, Req), 0};
|
||||
info(timeout, Req, Count) ->
|
||||
erlang:send_after(200, self(), timeout),
|
||||
{ok, Req, Count - 1, hibernate}.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue