diff options
| author | Matthias Radestock <matthias@rabbitmq.com> | 2013-01-22 12:50:35 +0000 |
|---|---|---|
| committer | Matthias Radestock <matthias@rabbitmq.com> | 2013-01-22 12:50:35 +0000 |
| commit | 6a84c254fc2a911a1d38383037362733841c2222 (patch) | |
| tree | 853a0e9aaa419156f406ad132d1bed3fefc6e835 | |
| parent | 139c8d89689c949fe1e82cda58ed2478354f47b2 (diff) | |
| parent | c5fda3bbd210352df208df0135bbea6d02ec8f65 (diff) | |
| download | rabbitmq-server-git-6a84c254fc2a911a1d38383037362733841c2222.tar.gz | |
merge bug25360 into stable
| -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 a68caadbdc..7a0ed1af41 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(), |
