diff options
author | Loïc Hoguin <[email protected]> | 2017-10-31 16:49:48 +0000 |
---|---|---|
committer | Loïc Hoguin <[email protected]> | 2017-10-31 16:49:48 +0000 |
commit | d41f2914b0f7e52e669206d186c01a47e8113bf0 (patch) | |
tree | 07d53cb63e3c6e25a8b0c2c4c0555c7ffda8aedf /test/handlers/long_polling_h.erl | |
parent | fb13e5c9e9dcdb73e2f12d50ccc827c6f395df00 (diff) | |
download | cowboy-d41f2914b0f7e52e669206d186c01a47e8113bf0.tar.gz cowboy-d41f2914b0f7e52e669206d186c01a47e8113bf0.tar.bz2 cowboy-d41f2914b0f7e52e669206d186c01a47e8113bf0.zip |
Fix broken tests in loop_handler_SUITE
Diffstat (limited to 'test/handlers/long_polling_h.erl')
-rw-r--r-- | test/handlers/long_polling_h.erl | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/test/handlers/long_polling_h.erl b/test/handlers/long_polling_h.erl index 3dd0f77..f9da574 100644 --- a/test/handlers/long_polling_h.erl +++ b/test/handlers/long_polling_h.erl @@ -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}. |