Skip to content

Commit be150ab

Browse files
authored
Update ConnectionTest.java
Increased ping timeout for cloud tests to check that connection is valid.
1 parent 83c5779 commit be150ab

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

jdbc-v2/src/test/java/com/clickhouse/jdbc/ConnectionTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -651,7 +651,7 @@ public void testNetworkTimeout() throws Exception {
651651
executorService.shutdown();
652652
executorService.awaitTermination(20, TimeUnit.SECONDS);
653653
Assert.assertTrue(conn.isClosed());
654-
Assert.assertFalse(conn.isValid(1000));
654+
Assert.assertFalse(conn.isValid(5000));
655655
conn.close();
656656

657657
}
@@ -671,7 +671,7 @@ public void testNetworkTimeout() throws Exception {
671671
fail("Exception expected");
672672
} catch (Exception e) {
673673
Assert.assertFalse(conn.isClosed());
674-
Assert.assertTrue(conn.isValid(1000));
674+
Assert.assertTrue(conn.isValid(5000));
675675
}
676676
}
677677

0 commit comments

Comments
 (0)