From d41f2914b0f7e52e669206d186c01a47e8113bf0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Hoguin?= Date: Tue, 31 Oct 2017 16:49:48 +0000 Subject: Fix broken tests in loop_handler_SUITE --- test/handlers/long_polling_h.erl | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'test/handlers') 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}. -- cgit v1.2.3