Skip to content

Commit e13743e

Browse files
michaelklishinmergify-bot
authored andcommitted
Federated queue suite: make it easier to identify messages
(cherry picked from commit 7b57750) (cherry picked from commit 455937a)
1 parent 8206632 commit e13743e

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

deps/rabbitmq_federation/test/queue_SUITE.erl

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -193,8 +193,8 @@ multiple_upstreams(Config) ->
193193
TargetArgs = ?config(target_queue_args, Config),
194194
with_ch(Config,
195195
fun (Ch) ->
196-
expect_federation(Ch, <<"upstream">>, <<"fed12.downstream">>),
197-
expect_federation(Ch, <<"upstream2">>, <<"fed12.downstream">>)
196+
expect_federation(Ch, <<"upstream">>, <<"fed12.downstream">>, ?EXPECT_FEDERATION_TIMEOUT),
197+
expect_federation(Ch, <<"upstream2">>, <<"fed12.downstream">>, ?EXPECT_FEDERATION_TIMEOUT)
198198
end, [q(<<"upstream">>, SourceArgs),
199199
q(<<"upstream2">>, SourceArgs),
200200
q(<<"fed12.downstream">>, TargetArgs)]).
@@ -408,10 +408,14 @@ expect_empty(Ch, Q) ->
408408
rabbit_federation_test_util:expect_empty(Ch, Q).
409409

410410
expect_federation(Ch, UpstreamQ, DownstreamQ) ->
411-
publish_expect(Ch, <<>>, UpstreamQ, DownstreamQ, <<"HELLO">>).
411+
Base = <<"HELLO">>,
412+
Payload = <<Base/binary, "-to-", UpstreamQ/binary>>,
413+
publish_expect(Ch, <<>>, UpstreamQ, DownstreamQ, Payload).
412414

413415
expect_federation(Ch, UpstreamQ, DownstreamQ, Timeout) ->
414-
publish_expect(Ch, <<>>, UpstreamQ, DownstreamQ, <<"HELLO">>, Timeout).
416+
Base = <<"HELLO">>,
417+
Payload = <<Base/binary, "-to-", UpstreamQ/binary>>,
418+
publish_expect(Ch, <<>>, UpstreamQ, DownstreamQ, Payload, Timeout).
415419

416420
expect_no_federation(Ch, UpstreamQ, DownstreamQ) ->
417421
publish(Ch, <<>>, UpstreamQ, <<"HELLO">>),

0 commit comments

Comments
 (0)