diff options
author | Matthias Radestock <matthias@rabbitmq.com> | 2013-01-22 12:50:15 +0000 |
---|---|---|
committer | Matthias Radestock <matthias@rabbitmq.com> | 2013-01-22 12:50:15 +0000 |
commit | c408184ffd653dc7b52fe584b9e13f410229e142 (patch) | |
tree | 853a0e9aaa419156f406ad132d1bed3fefc6e835 | |
parent | ac66b65c6359d75ff5adfc7b955e92286990933e (diff) | |
download | rabbitmq-server-c408184ffd653dc7b52fe584b9e13f410229e142.tar.gz |
our test writer needs to do a bit more now
-rw-r--r-- | src/rabbit_tests.erl | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/rabbit_tests.erl b/src/rabbit_tests.erl index a68caadb..7a0ed1af 100644 --- a/src/rabbit_tests.erl +++ b/src/rabbit_tests.erl @@ -1084,9 +1084,16 @@ test_policy_validation() -> rabbit_runtime_parameters_test:unregister_policy_validator(), passed. +writer() -> + receive + {'$gen_call', From, flush} -> gen_server:reply(From, ok), + writer(); + shutdown -> ok + end. + test_server_status() -> %% create a few things so there is some useful information to list - Writer = spawn(fun () -> receive shutdown -> ok end end), + Writer = spawn(fun writer/0), {ok, Ch} = rabbit_channel:start_link( 1, self(), Writer, self(), "", rabbit_framing_amqp_0_9_1, user(<<"user">>), <<"/">>, [], self(), |