diff options
author | Alexandru Scvortov <alexandru@rabbitmq.com> | 2011-07-25 15:55:22 +0100 |
---|---|---|
committer | Alexandru Scvortov <alexandru@rabbitmq.com> | 2011-07-25 15:55:22 +0100 |
commit | a900a7b383a93ad2bdd14b76101d70d73751ecca (patch) | |
tree | 042fb67fda25c75e555107cd91bb0573bd2a1315 | |
parent | c26fa8029b6d8501cb14345497f196de7988539b (diff) | |
download | rabbitmq-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.erl | 4 |
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) |