Skip to content

Commit

Permalink
fix: ut
Browse files Browse the repository at this point in the history
  • Loading branch information
stalary committed Aug 13, 2024
1 parent 0bdc61b commit 0e84864
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ public void test() throws Exception {
Assert.assertEquals(1000000, execMemLimit);

List<List<String>> userProps = Env.getCurrentEnv().getAuth().getUserProperties(Auth.ROOT_USER);
Assert.assertEquals(12, userProps.size());
Assert.assertEquals(13, userProps.size());

// now :
// be1 be2 be3 ==>tag1;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,10 @@ suite("test_auth_compatibility", "account") {
connect(user = user, password = pwd, url = context.config.jdbcUrl) {}
try {
connect(user = user, password = pwd, url = context.config.jdbcUrl) {}
assertTrue(false. "should not be able to login")
} catch (Exception e) {
assertTrue(e.getMessage().contains("Reach limit of connections"), e.getMessage())
}
sql """SET PROPERTY FOR '${user}' 'max_user_ip_connections'= '100'"""

}

0 comments on commit 0e84864

Please sign in to comment.