Просмотр исходного кода

test(authn): fix test case after authentication default value added

Zaiming (Stone) Shi 2 лет назад
Родитель
Сommit
03ae61569f
1 измененных файлов с 2 добавлено и 1 удалено
  1. 2 1
      apps/emqx_authn/test/emqx_authn_schema_SUITE.erl

+ 2 - 1
apps/emqx_authn/test/emqx_authn_schema_SUITE.erl

@@ -78,7 +78,8 @@ t_check_schema(_Config) ->
     ).
 
 t_union_member_selector(_) ->
-    ?assertMatch(#{authentication := undefined}, check(undefined)),
+    %% default value for authentication
+    ?assertMatch(#{authentication := []}, check(undefined)),
     C1 = #{<<"backend">> => <<"built_in_database">>},
     ?assertThrow(
         #{