@@ -203,8 +203,8 @@ multiple_upstreams(Config) ->
203
203
TargetArgs = ? config (target_queue_args , Config ),
204
204
with_ch (Config ,
205
205
fun (Ch ) ->
206
- expect_federation (Ch , <<" upstream" >>, <<" fed12.downstream" >>),
207
- expect_federation (Ch , <<" upstream2" >>, <<" fed12.downstream" >>)
206
+ expect_federation (Ch , <<" upstream" >>, <<" fed12.downstream" >>, ? EXPECT_FEDERATION_TIMEOUT ),
207
+ expect_federation (Ch , <<" upstream2" >>, <<" fed12.downstream" >>, ? EXPECT_FEDERATION_TIMEOUT )
208
208
end , [q (<<" upstream" >>, SourceArgs ),
209
209
q (<<" upstream2" >>, SourceArgs ),
210
210
q (<<" fed12.downstream" >>, TargetArgs )]).
@@ -418,10 +418,14 @@ expect_empty(Ch, Q) ->
418
418
rabbit_federation_test_util :expect_empty (Ch , Q ).
419
419
420
420
expect_federation (Ch , UpstreamQ , DownstreamQ ) ->
421
- publish_expect (Ch , <<>>, UpstreamQ , DownstreamQ , <<" HELLO" >>).
421
+ Base = <<" HELLO" >>,
422
+ Payload = <<Base /binary , " -to-" , UpstreamQ /binary >>,
423
+ publish_expect (Ch , <<>>, UpstreamQ , DownstreamQ , Payload ).
422
424
423
425
expect_federation (Ch , UpstreamQ , DownstreamQ , Timeout ) ->
424
- publish_expect (Ch , <<>>, UpstreamQ , DownstreamQ , <<" HELLO" >>, Timeout ).
426
+ Base = <<" HELLO" >>,
427
+ Payload = <<Base /binary , " -to-" , UpstreamQ /binary >>,
428
+ publish_expect (Ch , <<>>, UpstreamQ , DownstreamQ , Payload , Timeout ).
425
429
426
430
expect_no_federation (Ch , UpstreamQ , DownstreamQ ) ->
427
431
publish (Ch , <<>>, UpstreamQ , <<" HELLO" >>),
0 commit comments