Parcourir la source

test(refactor): stop snabbkaffe on every test

Thales Macedo Garitezi il y a 3 ans
Parent
commit
0f9cc0d93f
1 fichiers modifiés avec 1 ajouts et 7 suppressions
  1. 1 7
      lib-ee/emqx_ee_bridge/test/emqx_ee_bridge_influxdb_SUITE.erl

+ 1 - 7
lib-ee/emqx_ee_bridge/test/emqx_ee_bridge_influxdb_SUITE.erl

@@ -232,6 +232,7 @@ init_per_testcase(_Testcase, Config) ->
 end_per_testcase(_Testcase, Config) ->
 end_per_testcase(_Testcase, Config) ->
     ProxyHost = ?config(proxy_host, Config),
     ProxyHost = ?config(proxy_host, Config),
     ProxyPort = ?config(proxy_port, Config),
     ProxyPort = ?config(proxy_port, Config),
+    ok = snabbkaffe:stop(),
     emqx_common_test_helpers:reset_proxy(ProxyHost, ProxyPort),
     emqx_common_test_helpers:reset_proxy(ProxyHost, ProxyPort),
     %% catch clear_db(Config),
     %% catch clear_db(Config),
     %% delete_bridge(Config),
     %% delete_bridge(Config),
@@ -509,7 +510,6 @@ t_start_ok(Config) ->
             ok
             ok
         end
         end
     ),
     ),
-    ok = snabbkaffe:stop(),
     ok.
     ok.
 
 
 t_start_already_started(Config) ->
 t_start_already_started(Config) ->
@@ -534,7 +534,6 @@ t_start_already_started(Config) ->
             ok
             ok
         end
         end
     ),
     ),
-    ok = snabbkaffe:stop(),
     ok.
     ok.
 
 
 t_start_ok_timestamp_write_syntax(Config) ->
 t_start_ok_timestamp_write_syntax(Config) ->
@@ -735,7 +734,6 @@ t_bad_timestamp(Config) ->
             ok
             ok
         end
         end
     ),
     ),
-    ok = snabbkaffe:stop(),
     ok.
     ok.
 
 
 t_get_status(Config) ->
 t_get_status(Config) ->
@@ -766,7 +764,6 @@ t_create_disconnected(Config) ->
             ok
             ok
         end
         end
     ),
     ),
-    ok = snabbkaffe:stop(),
     ok.
     ok.
 
 
 t_start_error(Config) ->
 t_start_error(Config) ->
@@ -792,7 +789,6 @@ t_start_error(Config) ->
             ok
             ok
         end
         end
     ),
     ),
-    ok = snabbkaffe:stop(),
     ok.
     ok.
 
 
 t_start_exception(Config) ->
 t_start_exception(Config) ->
@@ -818,7 +814,6 @@ t_start_exception(Config) ->
             ok
             ok
         end
         end
     ),
     ),
-    ok = snabbkaffe:stop(),
     ok.
     ok.
 
 
 t_write_failure(Config) ->
 t_write_failure(Config) ->
@@ -859,5 +854,4 @@ t_write_failure(Config) ->
             ok
             ok
         end
         end
     ),
     ),
-    ok = snabbkaffe:stop(),
     ok.
     ok.