Skip to content

Commit

Permalink
[misc] improve failover test stability - second part
Browse files Browse the repository at this point in the history
  • Loading branch information
rusher committed Oct 15, 2024
1 parent 4b6cc77 commit 457561a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/test/java/org/mariadb/jdbc/integration/MultiHostTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ public void masterFailover() throws Exception {
try (Connection con =
(Connection)
DriverManager.getConnection(
url + "&retriesAllDown=4&connectTimeout=20&deniedListTimeout=20")) {
url + "&retriesAllDown=4&connectTimeout=50&deniedListTimeout=50")) {
Statement stmt = con.createStatement();
con.setAutoCommit(false);
stmt.execute("START TRANSACTION");
Expand All @@ -321,7 +321,7 @@ public void masterFailover() throws Exception {
(Connection)
DriverManager.getConnection(
url
+ "&transactionReplay=true&waitReconnectTimeout=300&deniedListTimeout=300&retriesAllDown=4&connectTimeout=20")) {
+ "&transactionReplay=true&waitReconnectTimeout=300&deniedListTimeout=300&retriesAllDown=4&connectTimeout=50")) {
Statement stmt = con.createStatement();
stmt.execute("DROP TABLE IF EXISTS testReplay");
stmt.execute("CREATE TABLE testReplay(id INT)");
Expand Down

0 comments on commit 457561a

Please sign in to comment.