From 1066a8d3763c75a1d63ef347e0caa4971c1aa494 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Hoguin?= Date: Wed, 29 Nov 2017 17:03:16 +0100 Subject: Remove two warnings in test suites --- test/static_handler_SUITE.erl | 2 +- test/stream_handler_SUITE.erl | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) (limited to 'test') diff --git a/test/static_handler_SUITE.erl b/test/static_handler_SUITE.erl index 5b02e01..9cbe371 100644 --- a/test/static_handler_SUITE.erl +++ b/test/static_handler_SUITE.erl @@ -341,7 +341,7 @@ dir_dotdot_file(Config) -> dir_empty_file(Config) -> doc("Get an empty .txt file."), - {200, Headers, <<>>} = do_get(config(prefix, Config) ++ "/empty.txt", Config), + {200, _, <<>>} = do_get(config(prefix, Config) ++ "/empty.txt", Config), ok. dir_error_directory(Config) -> diff --git a/test/stream_handler_SUITE.erl b/test/stream_handler_SUITE.erl index 04e1dcf..231e97a 100644 --- a/test/stream_handler_SUITE.erl +++ b/test/stream_handler_SUITE.erl @@ -380,6 +380,7 @@ do_terminate_on_switch_protocol(Config) -> ]), %% Confirm init/3 is called and receive the response. Pid = receive {Self, P, init, _, _, _} -> P after 1000 -> error(timeout) end, + {inform, 101, _} = gun:await(ConnPid, Ref), %% Confirm terminate/3 is called. receive {Self, Pid, terminate, _, _, _} -> ok after 1000 -> error(timeout) end, %% Confirm takeover/7 is called. -- cgit v1.2.3