Skip to content

Commit

Permalink
[misc] correcting test for mysql 8.0.31
Browse files Browse the repository at this point in the history
  • Loading branch information
rusher committed Nov 7, 2022
1 parent a9a998d commit c568635
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/test/java/org/mariadb/jdbc/Sha256AuthenticationTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,8 @@ public void sha256PluginTestWithServerRsaKey() throws SQLException {
@Test
public void sha256PluginTestWithoutServerRsaKey() throws SQLException {
Assume.assumeTrue(!Platform.isWindows() && minVersion(8, 0, 0));
// mysql 8.0.31 broken public key retrieval, so avoid FLUSHING for now
Assume.assumeTrue(!isMariadbServer() && !exactVersion(8, 0, 31));

try (Connection conn =
DriverManager.getConnection(
Expand Down Expand Up @@ -169,6 +171,9 @@ public void cachingSha256PluginTestWithServerRsaKey() throws SQLException {
@Test
public void cachingSha256PluginTestWithoutServerRsaKey() throws SQLException {
Assume.assumeTrue(minVersion(8, 0, 0));
// mysql 8.0.31 broken public key retrieval, so avoid FLUSHING for now
Assume.assumeTrue(!isMariadbServer() && !exactVersion(8, 0, 31));

try (Connection conn =
DriverManager.getConnection(
"jdbc:mariadb://"
Expand Down

0 comments on commit c568635

Please sign in to comment.