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