Просмотр исходного кода

test: update testcase for new emqtt

William Yang 3 лет назад
Родитель
Сommit
04a8a49dbe
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      apps/emqx/test/emqx_mqtt_protocol_v5_SUITE.erl

+ 1 - 1
apps/emqx/test/emqx_mqtt_protocol_v5_SUITE.erl

@@ -919,7 +919,7 @@ t_shared_subscriptions_client_terminates_when_qos_eq_2(Config) ->
         emqtt,
         emqtt,
         connected,
         connected,
         fun
         fun
-            (cast, ?PUBLISH_PACKET(?QOS_2, _PacketId), _State) ->
+            (cast, {?PUBLISH_PACKET(?QOS_2, _PacketId), _Via}, _State) ->
                 ok = counters:add(CRef, 1, 1),
                 ok = counters:add(CRef, 1, 1),
                 {stop, {shutdown, for_testing}};
                 {stop, {shutdown, for_testing}};
             (Arg1, ARg2, Arg3) ->
             (Arg1, ARg2, Arg3) ->