Browse Source

test: clean up test files at the end of the test case

zmstone 1 năm trước cách đây
mục cha
commit
0885855d59
1 tập tin đã thay đổi với 3 bổ sung1 xóa
  1. 3 1
      apps/emqx/test/emqx_config_SUITE.erl

+ 3 - 1
apps/emqx/test/emqx_config_SUITE.erl

@@ -126,7 +126,9 @@ t_init_load_with_base_hocon(C) when is_list(C) ->
     ?assertEqual(123, emqx:get_config([mqtt, max_clientid_len])),
     ?assertEqual(123, emqx:get_config([mqtt, max_inflight])),
     emqx_config:erase_all(),
-    ok = file:delete(BaseHocon).
+    ok = file:delete(BaseHocon),
+    ok = file:delete(ClusterHocon),
+    ok.
 
 t_unknown_root_keys(C) when is_list(C) ->
     ?check_trace(