summaryrefslogtreecommitdiff
path: root/test/src
diff options
context:
space:
mode:
authorAlvaro Videla <videlalvaro@gmail.com>2015-04-27 15:13:10 +0200
committerAlvaro Videla <videlalvaro@gmail.com>2015-04-27 15:13:10 +0200
commit8e64cf11af6507ce062034283ee918458dc1b464 (patch)
tree1a564fb2c1b5bbd6bea32a619b7f35fe0c127599 /test/src
parentca3d9d2742f09bc8aee8f6a57007c6e49df921db (diff)
downloadrabbitmq-server-git-8e64cf11af6507ce062034283ee918458dc1b464.tar.gz
tests cleanup
Diffstat (limited to 'test/src')
-rw-r--r--test/src/rabbit_tests.erl7
1 files changed, 3 insertions, 4 deletions
diff --git a/test/src/rabbit_tests.erl b/test/src/rabbit_tests.erl
index a39aa81e79..ab565d1988 100644
--- a/test/src/rabbit_tests.erl
+++ b/test/src/rabbit_tests.erl
@@ -1536,9 +1536,8 @@ test_head_message_timestamp_statistic() ->
after ?TIMEOUT -> throw(failed_to_receive_queue_declare_ok)
end,
QRes = rabbit_misc:r(<<"/">>, queue, QName),
- X = rabbit_misc:r(<<"/">>, exchange, <<"">>),
-
- {ok, Q1} = rabbit_amqqueue:lookup(rabbit_misc:r(<<"/">>, queue, QName)),
+
+ {ok, Q1} = rabbit_amqqueue:lookup(QRes),
QPid = Q1#amqqueue.pid,
%% Set up event receiver for queue
@@ -1566,7 +1565,7 @@ test_head_message_timestamp_statistic() ->
%% Get second message and check timestamp is empty again
rabbit_channel:do(Ch, #'basic.get'{queue = QName, no_ack = true}),
Event4 = test_queue_statistics_receive_event(QPid, fun (E) -> proplists:get_value(name, E) == QRes end),
- '' = proplists:get_value(head_message_timestamp, Event1),
+ '' = proplists:get_value(head_message_timestamp, Event4),
%% Teardown
rabbit_channel:do(Ch, #'queue.delete'{queue = QName}),