path: root/test/sys_SUITE.erl
diff options
authorLoïc Hoguin <[email protected]>2018-03-26 18:49:09 +0200
committerLoïc Hoguin <[email protected]>2018-03-26 18:53:07 +0200
commit5964273cc4354b7378b8bdf49fe455d2b46d7c3b (patch)
tree38194d0ae9a16056fff8e1c062fe6c6267d2d24c /test/sys_SUITE.erl
parent4d5174632cc1feac541697b18e6fbbdd0eed021b (diff)
Fix the flushing of messages when switching to Websocket
We now flush messages that are specific to cowboy_http only. Stream handlers should also flush their own specific messages if necessary, although timeouts will be flushed regardless of where they originate from. Also renames the http_SUITE to old_http_SUITE to distinguish new tests from old tests. Most old tests need to be removed or converted eventually as they're legacy tests from Cowboy 1.0.
Diffstat (limited to 'test/sys_SUITE.erl')
1 files changed, 0 insertions, 4 deletions
diff --git a/test/sys_SUITE.erl b/test/sys_SUITE.erl
index bb77ede..b692521 100644
--- a/test/sys_SUITE.erl
+++ b/test/sys_SUITE.erl
@@ -108,10 +108,6 @@ proc_lib_initial_call_tls(Config) ->
%% the receiving process module. When a system message is received,
%% function handle_system_msg/6 is called to handle the request.
-%% @todo The flush/0 function in cowboy_http needs to be fixed
-%% so that it doesn't eat up system messages. It should only
-%% flush messages that are specific to cowboy_http.
bad_system_from_h1(Config) ->
doc("h1: Sending a system message with a bad From value results in a process crash."),
{ok, Socket} = gen_tcp:connect("localhost", config(clear_port, Config), [{active, false}]),