zhongwencool 4 лет назад
Родитель
Сommit
858891dbf5

+ 1 - 0
apps/emqx/test/emqx_trace_handler_SUITE.erl

@@ -199,6 +199,7 @@ t_trace_ip_address(_Config) ->
     ?assertEqual([], emqx_trace_handler:running()).
 
 filesync(Name, Type) ->
+    ct:sleep(50),
     filesync(Name, Type, 3).
 
 %% sometime the handler process is not started yet.

+ 5 - 6
apps/emqx_modules/test/emqx_rewrite_SUITE.erl

@@ -168,12 +168,11 @@ t_update_re_failed(_Config) ->
     }],
     Error = {badmatch,
         {error,
-            {error,
-                {emqx_modules_schema,
-                    [{validation_error,
-                        #{array_index => 1,path => "rewrite.re",
-                            reason => {<<"*^test/*">>,{"nothing to repeat",0}},
-                            value => <<"*^test/*">>}}]}}}},
+            {emqx_modules_schema,
+                [{validation_error,
+                    #{array_index => 1,path => "rewrite.re",
+                        reason => {<<"*^test/*">>,{"nothing to repeat",0}},
+                        value => <<"*^test/*">>}}]}}},
     ?assertError(Error, emqx_rewrite:update(Rules)),
     ok.