summaryrefslogtreecommitdiff
path: root/src
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
commita4574af72a80f576808fd9314a22b8330333db4f (patch)
treedc4803815f319d0d732a31ee2b52d40a6ddf1be7 /src
parentd7c90146f308efc1f686b27f0da0662f03032af7 (diff)
downloadrabbitmq-server-git-a4574af72a80f576808fd9314a22b8330333db4f.tar.gz
Delegate from remote to local as well as from local to remote
Diffstat (limited to 'src')
-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 c13b2876e6..35bfc0727f 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() ->