Skip to content

Commit 8b7e856

Browse files
Fix channel in test cases related to capabilities
1 parent 99ebbfc commit 8b7e856

File tree

1 file changed

+14
-13
lines changed

1 file changed

+14
-13
lines changed

Diff for: deps/amqp10_client/test/system_SUITE.erl

+14-13
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ all() ->
2424
{group, rabbitmq},
2525
{group, rabbitmq_strict},
2626
{group, activemq},
27-
{group, ibmmq},
27+
% {group, ibmmq},
2828
{group, activemq_no_anon},
2929
{group, mock}
3030
].
@@ -967,25 +967,26 @@ set_receiver_capabilities(Config) ->
967967
OpenStep = fun({0 = Ch, #'v1_0.open'{}, _Pay}) ->
968968
{Ch, [#'v1_0.open'{container_id = {utf8, <<"mock">>}}]}
969969
end,
970-
BeginStep = fun({1 = Ch, #'v1_0.begin'{}, _Pay}) ->
971-
{Ch, [#'v1_0.begin'{remote_channel = {ushort, 1},
970+
BeginStep = fun({0 = Ch, #'v1_0.begin'{}, _Pay}) ->
971+
{Ch, [#'v1_0.begin'{remote_channel = {ushort, Ch},
972972
next_outgoing_id = {uint, 1},
973973
incoming_window = {uint, 1000},
974974
outgoing_window = {uint, 1000}}
975-
]}
975+
]}
976976
end,
977-
AttachStep = fun({1 = Ch, #'v1_0.attach'{role = true,
977+
AttachStep = fun({0 = Ch, #'v1_0.attach'{role = true,
978978
name = Name,
979979
source = #'v1_0.source'{
980-
capabilities = {symbol, <<"capability-1">>}}}, <<>>}) ->
980+
capabilities = {symbol, <<"capability-1">>}}
981+
}, <<>>}) ->
981982
{Ch, [#'v1_0.attach'{name = Name,
982983
handle = {uint, 99},
983984
initial_delivery_count = {uint, 1},
984985
role = false}
985986
]}
986987
end,
987988

988-
LinkCreditStep = fun({1 = Ch, #'v1_0.flow'{}, <<>>}) ->
989+
LinkCreditStep = fun({0 = Ch, #'v1_0.flow'{}, <<>>}) ->
989990
{Ch, {multi, [[#'v1_0.transfer'{handle = {uint, 99},
990991
delivery_id = {uint, 12},
991992
more = true},
@@ -1039,14 +1040,14 @@ set_sender_capabilities(Config) ->
10391040
OpenStep = fun({0 = Ch, #'v1_0.open'{}, _Pay}) ->
10401041
{Ch, [#'v1_0.open'{container_id = {utf8, <<"mock">>}}]}
10411042
end,
1042-
BeginStep = fun({1 = Ch, #'v1_0.begin'{}, _Pay}) ->
1043-
{Ch, [#'v1_0.begin'{remote_channel = {ushort, 1},
1043+
BeginStep = fun({0 = Ch, #'v1_0.begin'{}, _Pay}) ->
1044+
{Ch, [#'v1_0.begin'{remote_channel = {ushort, Ch},
10441045
next_outgoing_id = {uint, 1},
10451046
incoming_window = {uint, 1000},
10461047
outgoing_window = {uint, 1000}}
10471048
]}
10481049
end,
1049-
AttachStep = fun({1 = Ch, #'v1_0.attach'{role = false,
1050+
AttachStep = fun({0 = Ch, #'v1_0.attach'{role = false,
10501051
name = Name,
10511052
source = #'v1_0.source'{
10521053

@@ -1091,14 +1092,14 @@ set_sender_sync_capabilities(Config) ->
10911092
OpenStep = fun({0 = Ch, #'v1_0.open'{}, _Pay}) ->
10921093
{Ch, [#'v1_0.open'{container_id = {utf8, <<"mock">>}}]}
10931094
end,
1094-
BeginStep = fun({1 = Ch, #'v1_0.begin'{}, _Pay}) ->
1095-
{Ch, [#'v1_0.begin'{remote_channel = {ushort, 1},
1095+
BeginStep = fun({0 = Ch, #'v1_0.begin'{}, _Pay}) ->
1096+
{Ch, [#'v1_0.begin'{remote_channel = {ushort, Ch},
10961097
next_outgoing_id = {uint, 1},
10971098
incoming_window = {uint, 1000},
10981099
outgoing_window = {uint, 1000}}
10991100
]}
11001101
end,
1101-
AttachStep = fun({1 = Ch, #'v1_0.attach'{role = false,
1102+
AttachStep = fun({0 = Ch, #'v1_0.attach'{role = false,
11021103
name = Name,
11031104
source = #'v1_0.source'{
11041105

0 commit comments

Comments
 (0)