فهرست منبع

fix(dynamo): fix test case errors

firest 2 سال پیش
والد
کامیت
9eccfa5cdf
1فایلهای تغییر یافته به همراه2 افزوده شده و 2 حذف شده
  1. 2 2
      lib-ee/emqx_ee_bridge/test/emqx_ee_bridge_dynamo_SUITE.erl

+ 2 - 2
lib-ee/emqx_ee_bridge/test/emqx_ee_bridge_dynamo_SUITE.erl

@@ -291,7 +291,7 @@ t_setup_via_config_and_publish(Config) ->
         end,
         end,
         fun(Trace0) ->
         fun(Trace0) ->
             Trace = ?of_kind(dynamo_connector_query_return, Trace0),
             Trace = ?of_kind(dynamo_connector_query_return, Trace0),
-            ?assertMatch([#{result := ok}], Trace),
+            ?assertMatch([#{result := {ok, _}}], Trace),
             ok
             ok
         end
         end
     ),
     ),
@@ -328,7 +328,7 @@ t_setup_via_http_api_and_publish(Config) ->
         end,
         end,
         fun(Trace0) ->
         fun(Trace0) ->
             Trace = ?of_kind(dynamo_connector_query_return, Trace0),
             Trace = ?of_kind(dynamo_connector_query_return, Trace0),
-            ?assertMatch([#{result := ok}], Trace),
+            ?assertMatch([#{result := {ok, _}}], Trace),
             ok
             ok
         end
         end
     ),
     ),