fix: rewrite ct badmatch

This commit is contained in:
zhongwencool 2021-12-03 09:54:44 +08:00
parent e7a7d64004
commit 858891dbf5
2 changed files with 6 additions and 6 deletions

View File

@ -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.

View File

@ -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.