Procházet zdrojové kódy

test: do not use tc_user_skip for test cases

Zaiming (Stone) Shi před 3 roky
rodič
revize
fc12a8c4c8

+ 10 - 1
lib-ee/emqx_ee_bridge/test/emqx_ee_bridge_gcp_pubsub_SUITE.erl

@@ -110,7 +110,7 @@ init_per_testcase(TestCase, Config0) when
 ->
     case ?config(batch_size, Config0) of
         1 ->
-            {skip, no_batching};
+            [{skip_due_to_no_batching, true}];
         _ ->
             {ok, _} = start_echo_http_server(),
             delete_all_bridges(),
@@ -754,6 +754,15 @@ t_publish_templated(Config) ->
     ok.
 
 t_publish_success_batch(Config) ->
+    case proplists:get_bool(skip_due_to_no_batching, Config) of
+        true ->
+            ct:pal("this test case is skipped due to non-applicable config"),
+            ok;
+        false ->
+            test_publish_success_batch(Config)
+    end.
+
+test_publish_success_batch(Config) ->
     ResourceId = ?config(resource_id, Config),
     ServiceAccountJSON = ?config(service_account_json, Config),
     TelemetryTable = ?config(telemetry_table, Config),