Skip to content

Commit 654ceb7

Browse files
committed
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.
1 parent 2938cfa commit 654ceb7

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/rabbit_tests.erl

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -953,11 +953,7 @@ test_memory_pressure() ->
953953
ok = test_memory_pressure_receive_flow(true),
954954

955955
%% if we publish at this point, the channel should die
956-
Content = #content{class_id = element(1, rabbit_framing:method_id(
957-
'basic.publish')),
958-
properties = none,
959-
properties_bin = <<>>,
960-
payload_fragments_rev = []},
956+
Content = rabbit_basic:build_content([], <<>>),
961957
ok = rabbit_channel:do(Ch0, #'basic.publish'{}, Content),
962958
expect_normal_channel_termination(MRef0, Ch0),
963959

0 commit comments

Comments
 (0)