Skip to content

Commit 6c0ba03

Browse files
committed
Test that we start from 0 publishers & consumers
Pair: @kjnilsson Signed-off-by: Gerhard Lazu <[email protected]>
1 parent 0ecf3d4 commit 6c0ba03

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

deps/rabbitmq_stream/test/rabbit_stream_SUITE.erl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -324,12 +324,14 @@ test_server(Transport, Config) ->
324324
Stream = <<"stream1">>,
325325
C3 = test_create_stream(Transport, S, Stream, C2),
326326
PublisherId = 42,
327+
?assertMatch(#{publishers := 0}, get_global_counters(Config)),
327328
C4 = test_declare_publisher(Transport, S, PublisherId, Stream, C3),
328329
?assertMatch(#{publishers := 1}, get_global_counters(Config)),
329330
Body = <<"hello">>,
330331
C5 = test_publish_confirm(Transport, S, PublisherId, Body, C4),
331332
C6 = test_publish_confirm(Transport, S, PublisherId, Body, C5),
332333
SubscriptionId = 42,
334+
?assertMatch(#{consumers := 0}, get_global_counters(Config)),
333335
C7 = test_subscribe(Transport, S, SubscriptionId, Stream, C6),
334336
?assertMatch(#{consumers := 1}, get_global_counters(Config)),
335337
C8 = test_deliver(Transport, S, SubscriptionId, 0, Body, C7),

0 commit comments

Comments
 (0)