Browse Source

test: fix flaky test

Thales Macedo Garitezi 3 năm trước cách đây
mục cha
commit
5ab5236ad3

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

@@ -1105,13 +1105,13 @@ do_econnrefused_or_timeout_test(Config, Error) ->
             ?assertMatch(
             ?assertMatch(
                 #{
                 #{
                     dropped := Dropped,
                     dropped := Dropped,
-                    failed := 0,
+                    failed := Failed,
                     inflight := Inflight,
                     inflight := Inflight,
                     matched := Matched,
                     matched := Matched,
                     queuing := Queueing,
                     queuing := Queueing,
                     retried := 0,
                     retried := 0,
                     success := 0
                     success := 0
-                } when Matched >= 1 andalso Inflight + Queueing + Dropped =< 2,
+                } when Matched >= 1 andalso Inflight + Queueing + Dropped + Failed =< 2,
                 CurrentMetrics
                 CurrentMetrics
             );
             );
         {timeout, async} ->
         {timeout, async} ->