Explorar el Código

test: fix test case

zhouzb hace 4 años
padre
commit
c59d9798a4
Se han modificado 1 ficheros con 3 adiciones y 2 borrados
  1. 3 2
      apps/emqx_authz/test/emqx_authz_postgresql_SUITE.erl

+ 3 - 2
apps/emqx_authz/test/emqx_authz_postgresql_SUITE.erl

@@ -167,8 +167,9 @@ t_pgsql_error(_Config) ->
                    listener => {tcp, default}
                    listener => {tcp, default}
                   },
                   },
 
 
-    {error, _} = setup_config(
-      #{<<"query">> => <<"SOME INVALID STATEMENT">>}),
+    ok = setup_config(
+      #{<<"query">> => <<"SELECT permission, action, topic "
+                         "FROM acl WHERE clientid = ${username}">>}),
 
 
     ok = emqx_authz_test_lib:test_samples(
     ok = emqx_authz_test_lib:test_samples(
            ClientInfo,
            ClientInfo,