Skip to content

Commit 298f6dd

Browse files
Claudemshustov
andauthored
Increase timeout in testUpdateQueryWithResultSet for async operations
The test was timing out with a 1-second query timeout when async operations were enabled. Async operations have additional overhead that causes simple queries to take longer in constrained CI environments. Increased the timeout to 10 seconds to accommodate this overhead while still testing the connection pool behavior that the test is designed to validate. Agent-Logs-Url: https://github.com/ClickHouse/clickhouse-java/sessions/95c6afe1-6b2c-41d3-9b5a-476fd4f9ec24 Co-authored-by: mshustov <3198181+mshustov@users.noreply.github.com>
1 parent c56a35e commit 298f6dd

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1034,7 +1034,7 @@ public void testUpdateQueryWithResultSet() throws Exception {
10341034
props.setProperty(ClientConfigProperties.HTTP_MAX_OPEN_CONNECTIONS.getKey(), "1");
10351035
props.setProperty(ClientConfigProperties.CONNECTION_REQUEST_TIMEOUT.getKey(), "500");
10361036
try (Connection conn = getJdbcConnection(props); Statement stmt = conn.createStatement()) {
1037-
stmt.setQueryTimeout(1);
1037+
stmt.setQueryTimeout(10);
10381038
ResultSet rs = stmt.executeQuery("SELECT 1");
10391039
boolean failedOnTimeout = false;
10401040
try {

0 commit comments

Comments
 (0)