Skip to content

Commit

Permalink
merged
Browse files Browse the repository at this point in the history
  • Loading branch information
lilgreenbird committed Sep 23, 2020
1 parent 791e2b6 commit a711913
Showing 1 changed file with 1 addition and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -169,12 +169,7 @@ void testUserName(Connection conn, String user, SqlAuthentication authentication
if (SqlAuthentication.ActiveDirectoryIntegrated != authentication) {
assertTrue(user.equals(rs.getString(1)));
} else {
if (isWindows) {
assertTrue(rs.getString(1).contains(System.getProperty("user.name")));
} else {
// cannot verify user in kerberos tickets so just check it's not empty
assertTrue(!rs.getString(1).isEmpty());
}
assertTrue(rs.getString(1).contains(System.getProperty("user.name")));
}
}
}
Expand Down

0 comments on commit a711913

Please sign in to comment.