Skip to content
This repository was archived by the owner on Nov 18, 2020. It is now read-only.

Commit 87c5946

Browse files
committed
use confirms to ensure messages ended up in queues...
so we don't rely on 'purge' not overaking 'publish'.
1 parent 5ae457f commit 87c5946

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

test/test_util.erl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,11 +178,14 @@ sync_async_method_serialization_test() ->
178178
Q
179179
end,
180180
fun (Channel, X, Payload, _, MultiOpRet) ->
181+
#'confirm.select_ok'{} = amqp_channel:call(
182+
Channel, #'confirm.select'{}),
181183
ok = amqp_channel:call(Channel,
182184
#'basic.publish'{exchange = X,
183185
routing_key = <<"a">>},
184186
#amqp_msg{payload = Payload}),
185187
%% All queues must have gotten this message
188+
true = amqp_channel:wait_for_confirms(Channel),
186189
lists:foreach(
187190
fun (Q) ->
188191
#'queue.purge_ok'{message_count = 1} =

0 commit comments

Comments
 (0)