Selaa lähdekoodia

test: fix test case

zhouzb 4 vuotta sitten
vanhempi
commit
c59d9798a4
1 muutettua tiedostoa jossa 3 lisäystä ja 2 poistoa
  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}
                   },
 
-    {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(
            ClientInfo,