Skip to content

Commit b69c014

Browse files
One more test for #15713
1 parent 0fa1e99 commit b69c014

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

deps/rabbitmq_stream/test/rabbit_stream_reader_SUITE.erl

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -214,6 +214,20 @@ clean_subscriptions_should_remove_only_affected_subscriptions_test(_) ->
214214

215215
ok.
216216

217+
partial_frame_buffering_test(_) ->
218+
Init = rabbit_stream_core:init(undefined),
219+
220+
State1 = rabbit_stream_core:incoming_data(<<0, 0, 0, 4>>, Init),
221+
{Commands1, State2} = rabbit_stream_core:all_commands(State1),
222+
223+
?assertEqual([], Commands1),
224+
225+
State3 = rabbit_stream_core:incoming_data(<<0, 0, 0, 4>>, State2),
226+
{Commands2, _State4} = rabbit_stream_core:all_commands(State3),
227+
228+
?assertEqual([], Commands2),
229+
ok.
230+
217231
consumer(S, Pid) ->
218232
#consumer{configuration = #consumer_configuration{stream = S,
219233
member_pid = Pid}}.

0 commit comments

Comments
 (0)