diff options
author | Loïc Hoguin <[email protected]> | 2017-11-01 19:24:24 +0000 |
---|---|---|
committer | Loïc Hoguin <[email protected]> | 2017-11-01 19:24:42 +0000 |
commit | af58babd940f0add48c9ff6e47a4196f91417728 (patch) | |
tree | 5548fa892a2b4513314a656850a030e21364217a /test | |
parent | 5bb6438e10ae6b620b88f8d9989e6f6c0d252f34 (diff) | |
download | cowboy-af58babd940f0add48c9ff6e47a4196f91417728.tar.gz cowboy-af58babd940f0add48c9ff6e47a4196f91417728.tar.bz2 cowboy-af58babd940f0add48c9ff6e47a4196f91417728.zip |
Fix stream_handler_SUITE test failures
Diffstat (limited to 'test')
-rw-r--r-- | test/handlers/stream_handler_h.erl | 2 | ||||
-rw-r--r-- | test/stream_handler_SUITE.erl | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/test/handlers/stream_handler_h.erl b/test/handlers/stream_handler_h.erl index 501c509..7aa3195 100644 --- a/test/handlers/stream_handler_h.erl +++ b/test/handlers/stream_handler_h.erl @@ -81,7 +81,7 @@ info(StreamID, Info, State=#state{pid=Pid}) -> Pid ! {Pid, self(), info, StreamID, Info, State}, case Info of please_stop -> {[stop], State}; - _ -> {[], State} + _ -> {[Info], State} end. terminate(StreamID, Reason, State=#state{pid=Pid, test=crash_in_terminate}) -> diff --git a/test/stream_handler_SUITE.erl b/test/stream_handler_SUITE.erl index 33470eb..02234b4 100644 --- a/test/stream_handler_SUITE.erl +++ b/test/stream_handler_SUITE.erl @@ -245,7 +245,7 @@ shutdown_on_stream_stop(Config) -> receive {'DOWN', MRef, process, Spawn, shutdown} -> ok after 1000 -> error(timeout) end, %% The response is still sent. {response, nofin, 200, _} = gun:await(ConnPid, Ref), - {ok, <<>>} = gun:await_body(ConnPid, Ref), + {ok, _} = gun:await_body(ConnPid, Ref), ok. shutdown_on_socket_close(Config) -> @@ -295,7 +295,7 @@ shutdown_timeout_on_stream_stop(Config) -> receive {'DOWN', MRef, process, Spawn, killed} -> ok after 1000 -> error(timeout) end, %% The response is still sent. {response, nofin, 200, _} = gun:await(ConnPid, Ref), - {ok, <<>>} = gun:await_body(ConnPid, Ref), + {ok, _} = gun:await_body(ConnPid, Ref), ok. shutdown_timeout_on_socket_close(Config) -> |