Skip to content

Commit 04815c5

Browse files
committed
Test setting Direct Reply-To queue in CC header
1 parent fafe3d1 commit 04815c5

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

deps/rabbit/test/amqpl_direct_reply_to_SUITE.erl

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -338,10 +338,12 @@ rpc(RequesterNode, ResponderNode, Config) ->
338338

339339
%% Let's assume the RPC server sends multiple replies for a single request.
340340
%% (This is a bit unusual but should work.)
341+
%% Setting the reply address in CC should work.
341342
amqp_channel:cast(
342343
ResponderCh,
343-
#'basic.publish'{routing_key = ReplyTo},
344-
#amqp_msg{props = #'P_basic'{correlation_id = CorrelationId},
344+
#'basic.publish'{routing_key = <<"nowhere">>},
345+
#amqp_msg{props = #'P_basic'{headers = [{<<"CC">>, array, [{longstr, ReplyTo}]}],
346+
correlation_id = CorrelationId},
345347
payload = <<"reply 2">>}),
346348

347349
%% Receive the frst reply.

0 commit comments

Comments
 (0)