mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-20 16:15:59 +01:00
Fix compiler warnings regarding test cases
This commit is contained in:
parent
7e5d766a02
commit
5b3af9d4cd
@ -907,7 +907,6 @@ presence_broadcast(Config) ->
|
||||
B64Ver = base64:encode(Ver),
|
||||
Node = <<(?EJABBERD_CT_URI)/binary, $#, B64Ver/binary>>,
|
||||
Server = ?config(server, Config),
|
||||
ServerJID = server_jid(Config),
|
||||
Info = #disco_info{identities =
|
||||
[#identity{category = <<"client">>,
|
||||
type = <<"bot">>,
|
||||
|
@ -710,7 +710,7 @@ check_presence_blocked(Config, Reason) ->
|
||||
#stanza_error{reason = Reason} = xmpp:get_error(Err)
|
||||
end, [available, unavailable]).
|
||||
|
||||
recv_roster_pushes(Config, 0) ->
|
||||
recv_roster_pushes(_Config, 0) ->
|
||||
ok;
|
||||
recv_roster_pushes(Config, Count) ->
|
||||
receive
|
||||
@ -719,7 +719,6 @@ recv_roster_pushes(Config, Count) ->
|
||||
end.
|
||||
|
||||
recv_err_and_roster_pushes(Config, Count) ->
|
||||
PeerJID = ?config(master, Config),
|
||||
recv_roster_pushes(Config, Count),
|
||||
recv_presence(Config).
|
||||
|
||||
|
@ -149,13 +149,13 @@ slot_request(Config, NS) ->
|
||||
{GetURL, PutURL, Filename, Size}
|
||||
end.
|
||||
|
||||
put_request(Config, URL0, Data) ->
|
||||
put_request(_Config, URL0, Data) ->
|
||||
ct:comment("Putting ~B bytes to ~s", [size(Data), URL0]),
|
||||
URL = binary_to_list(URL0),
|
||||
{ok, {{"HTTP/1.1", 201, _}, _, _}} =
|
||||
httpc:request(put, {URL, [], ?CONTENT_TYPE, Data}, [], []).
|
||||
|
||||
get_request(Config, URL0, Data) ->
|
||||
get_request(_Config, URL0, Data) ->
|
||||
ct:comment("Getting ~B bytes from ~s", [size(Data), URL0]),
|
||||
URL = binary_to_list(URL0),
|
||||
{ok, {{"HTTP/1.1", 200, _}, _, Body}} =
|
||||
|
Loading…
Reference in New Issue
Block a user