Skip to content

Commit 9b524cd

Browse files
Test multiple capabilities
1 parent a7f974b commit 9b524cd

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

deps/amqp10_client/test/system_SUITE.erl

+6-2
Original file line numberDiff line numberDiff line change
@@ -932,7 +932,11 @@ set_sender_sync_capabilities(Config) ->
932932

933933
},
934934
target = #'v1_0.target'{
935-
capabilities = {utf8, <<"capability-1">>}}}, <<>>}) ->
935+
capabilities = {list, [
936+
{utf8,<<"capability-1">>},
937+
{utf8,<<"capability-2">>}
938+
]}
939+
}}, <<>>}) ->
936940
{Ch, [#'v1_0.attach'{name = Name,
937941
handle = {uint, 99},
938942
role = true}]}
@@ -952,7 +956,7 @@ set_sender_sync_capabilities(Config) ->
952956
<<"test">>,
953957
mixed,
954958
none,
955-
<<"capability-1">>),
959+
[<<"capability-1">>,<<"capability-2">>]),
956960
Msg = amqp10_msg:new(<<"mock-tag">>, <<"banana">>, true),
957961
{error, insufficient_credit} = amqp10_client:send_msg(Sender, Msg),
958962

0 commit comments

Comments
 (0)