summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexandru Scvortov <alexandru@rabbitmq.com>2011-07-25 15:55:22 +0100
committerAlexandru Scvortov <alexandru@rabbitmq.com>2011-07-25 15:55:22 +0100
commita900a7b383a93ad2bdd14b76101d70d73751ecca (patch)
tree042fb67fda25c75e555107cd91bb0573bd2a1315
parentc26fa8029b6d8501cb14345497f196de7988539b (diff)
downloadrabbitmq-server-a900a7b383a93ad2bdd14b76101d70d73751ecca.tar.gz
fix tests
Even if they're not used, the limiter functions need a valid token.
-rw-r--r--src/rabbit_tests.erl4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/rabbit_tests.erl b/src/rabbit_tests.erl
index 2e454411..3b91aa8d 100644
--- a/src/rabbit_tests.erl
+++ b/src/rabbit_tests.erl
@@ -1136,7 +1136,7 @@ test_server_status() ->
{ok, Ch} = rabbit_channel:start_link(
1, self(), Writer, self(), rabbit_framing_amqp_0_9_1,
user(<<"user">>), <<"/">>, [], self(),
- fun (_) -> {ok, self()} end),
+ rabbit_limiter:make_new_token(self())),
[Q, Q2] = [Queue || Name <- [<<"foo">>, <<"bar">>],
{new, Queue = #amqqueue{}} <-
[rabbit_amqqueue:declare(
@@ -1203,7 +1203,7 @@ test_spawn() ->
{ok, Ch} = rabbit_channel:start_link(
1, Me, Writer, Me, rabbit_framing_amqp_0_9_1,
user(<<"guest">>), <<"/">>, [], self(),
- fun (_) -> {ok, self()} end),
+ rabbit_limiter:make_new_token(self())),
ok = rabbit_channel:do(Ch, #'channel.open'{}),
receive #'channel.open_ok'{} -> ok
after 1000 -> throw(failed_to_receive_channel_open_ok)