@@ -193,8 +193,8 @@ multiple_upstreams(Config) ->
193
193
TargetArgs = ? config (target_queue_args , Config ),
194
194
with_ch (Config ,
195
195
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 )
198
198
end , [q (<<" upstream" >>, SourceArgs ),
199
199
q (<<" upstream2" >>, SourceArgs ),
200
200
q (<<" fed12.downstream" >>, TargetArgs )]).
@@ -408,10 +408,14 @@ expect_empty(Ch, Q) ->
408
408
rabbit_federation_test_util :expect_empty (Ch , Q ).
409
409
410
410
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 ).
412
414
413
415
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 ).
415
419
416
420
expect_no_federation (Ch , UpstreamQ , DownstreamQ ) ->
417
421
publish (Ch , <<>>, UpstreamQ , <<" HELLO" >>),
0 commit comments