test: fix emqx_rewrite_SUITE with new path info in schema check failure

This commit is contained in:
Zaiming (Stone) Shi 2021-12-05 21:52:36 +01:00
parent 34d3a73ff3
commit ed073f9966
1 changed files with 3 additions and 3 deletions

View File

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