0
Fork 0
mirror of https://github.com/ninenines/cowboy.git synced 2025-07-14 12:20:24 +00:00

Remove two warnings in test suites

This commit is contained in:
Loïc Hoguin 2017-11-29 17:03:16 +01:00
parent cf3ab5832a
commit 1066a8d376
No known key found for this signature in database
GPG key ID: 8A9DF795F6FED764
2 changed files with 2 additions and 1 deletions

View file

@ -341,7 +341,7 @@ dir_dotdot_file(Config) ->
dir_empty_file(Config) -> dir_empty_file(Config) ->
doc("Get an empty .txt file."), 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. ok.
dir_error_directory(Config) -> dir_error_directory(Config) ->

View file

@ -380,6 +380,7 @@ do_terminate_on_switch_protocol(Config) ->
]), ]),
%% Confirm init/3 is called and receive the response. %% Confirm init/3 is called and receive the response.
Pid = receive {Self, P, init, _, _, _} -> P after 1000 -> error(timeout) end, Pid = receive {Self, P, init, _, _, _} -> P after 1000 -> error(timeout) end,
{inform, 101, _} = gun:await(ConnPid, Ref),
%% Confirm terminate/3 is called. %% Confirm terminate/3 is called.
receive {Self, Pid, terminate, _, _, _} -> ok after 1000 -> error(timeout) end, receive {Self, Pid, terminate, _, _, _} -> ok after 1000 -> error(timeout) end,
%% Confirm takeover/7 is called. %% Confirm takeover/7 is called.