aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHolger Weiss <holger@zedat.fu-berlin.de>2018-07-11 00:07:57 +0200
committerHolger Weiss <holger@zedat.fu-berlin.de>2018-07-11 00:07:57 +0200
commit5b3af9d4cde7bec62e5d711395ae83c4a2054453 (patch)
tree4b322540e83fb7d9587af24666a3e1f3711ae740
parentpubsub_tests: Fix race condition (diff)
Fix compiler warnings regarding test cases
-rw-r--r--test/ejabberd_SUITE.erl1
-rw-r--r--test/privacy_tests.erl3
-rw-r--r--test/upload_tests.erl4
3 files changed, 3 insertions, 5 deletions
diff --git a/test/ejabberd_SUITE.erl b/test/ejabberd_SUITE.erl
index d3240f3d5..553eae1e4 100644
--- a/test/ejabberd_SUITE.erl
+++ b/test/ejabberd_SUITE.erl
@@ -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">>,
diff --git a/test/privacy_tests.erl b/test/privacy_tests.erl
index 25e5441ee..8cd99f513 100644
--- a/test/privacy_tests.erl
+++ b/test/privacy_tests.erl
@@ -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).
diff --git a/test/upload_tests.erl b/test/upload_tests.erl
index 88d27fc2c..ed1e90845 100644
--- a/test/upload_tests.erl
+++ b/test/upload_tests.erl
@@ -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}} =