Skip to content

Commit

Permalink
{allow,block}_traffic_between/2 are moved to rabbit_ct_broker_helpers
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelklishin committed Jul 3, 2016
1 parent b842eaa commit 520b6ef
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions test/partitions_SUITE.erl
Original file line number Diff line number Diff line change
Expand Up @@ -389,12 +389,10 @@ partitions(Node) ->
end.

block(X, Y) ->
rpc:call(X, inet_tcp_proxy, block, [Y]),
rpc:call(Y, inet_tcp_proxy, block, [X]).
rabbit_ct_broker_helpers:block_traffic_between(X, Y).

allow(X, Y) ->
rpc:call(X, inet_tcp_proxy, allow, [Y]),
rpc:call(Y, inet_tcp_proxy, allow, [X]).
rabbit_ct_broker_helpers:allow_traffic_between(X, Y).

await_running (Node, Bool) -> await(Node, Bool, fun is_running/1).
await_listening (Node, Bool) -> await(Node, Bool, fun is_listening/1).
Expand Down

0 comments on commit 520b6ef

Please sign in to comment.