Sfoglia il codice sorgente

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

Zaiming (Stone) Shi 4 anni fa
parent
commit
ed073f9966
1 ha cambiato i file con 3 aggiunte e 3 eliminazioni
  1. 3 3
      apps/emqx_modules/test/emqx_rewrite_SUITE.erl

+ 3 - 3
apps/emqx_modules/test/emqx_rewrite_SUITE.erl

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