summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Radestock <matthias@rabbitmq.com>2010-07-02 14:46:51 +0100
committerMatthias Radestock <matthias@rabbitmq.com>2010-07-02 14:46:51 +0100
commit8650193ea850ec9c39b0ae5fc741cecdcc15b31d (patch)
treeb39c2ef58afd3952e41b8a99a2a7ec457896fefe
parent45e37ef127ec961f1aa194f7369a3cdc1084f2ea (diff)
downloadrabbitmq-server-8650193ea850ec9c39b0ae5fc741cecdcc15b31d.tar.gz
minor simplification of test
This isn't quite the same since rabbit_basic:build_content only creates decoded properties, but for the test in question that doesn't matter.
-rw-r--r--src/rabbit_tests.erl6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/rabbit_tests.erl b/src/rabbit_tests.erl
index 34eec121..960d9a9c 100644
--- a/src/rabbit_tests.erl
+++ b/src/rabbit_tests.erl
@@ -953,11 +953,7 @@ test_memory_pressure() ->
ok = test_memory_pressure_receive_flow(true),
%% if we publish at this point, the channel should die
- Content = #content{class_id = element(1, rabbit_framing:method_id(
- 'basic.publish')),
- properties = none,
- properties_bin = <<>>,
- payload_fragments_rev = []},
+ Content = rabbit_basic:build_content([], <<>>),
ok = rabbit_channel:do(Ch0, #'basic.publish'{}, Content),
expect_normal_channel_termination(MRef0, Ch0),