summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Sackman <matthew@rabbitmq.com>2010-12-20 17:17:11 +0000
committerMatthew Sackman <matthew@rabbitmq.com>2010-12-20 17:17:11 +0000
commitf08f3ab6cfa3fcc51159013780ced5183817fa51 (patch)
treedc4803815f319d0d732a31ee2b52d40a6ddf1be7
parentfe2f5dfa8d83f5f352c8f30d03dbc6ffdf549667 (diff)
downloadrabbitmq-server-bug23619.tar.gz
Delegate from remote to local as well as from local to remotebug23619
-rw-r--r--src/rabbit_tests.erl16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/rabbit_tests.erl b/src/rabbit_tests.erl
index c13b2876..35bfc072 100644
--- a/src/rabbit_tests.erl
+++ b/src/rabbit_tests.erl
@@ -96,6 +96,22 @@ run_cluster_dependent_tests(SecondaryNode) ->
passed = test_delegates_async(SecondaryNode),
passed = test_delegates_sync(SecondaryNode),
+ %% we now run the tests remotely, so that code coverage on the
+ %% local node picks up more of the delegate
+ Node = node(),
+ Self = self(),
+ Remote = spawn(SecondaryNode,
+ fun () -> A = test_delegates_async(Node),
+ B = test_delegates_sync(Node),
+ Self ! {self(), {A, B}}
+ end),
+ receive
+ {Remote, Result} ->
+ Result = {passed, passed}
+ after 2000 ->
+ throw(timeout)
+ end,
+
passed.
test_priority_queue() ->