Skip to content

Commit a2a5184

Browse files
committed
FIFO reuse strategy tests
1 parent e98c875 commit a2a5184

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

clickhouse-http-client/src/test/java/com/clickhouse/client/http/ApacheHttpConnectionImplTest.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -329,12 +329,16 @@ public static Object[][] testConnectionTTLProvider() {
329329
HashMap<ClickHouseOption, Serializable> disabledKeepAlive = new HashMap<>();
330330
disabledKeepAlive.put(ClickHouseHttpOption.KEEP_ALIVE_TIMEOUT, 1000L);
331331
disabledKeepAlive.put(ClickHouseHttpOption.KEEP_ALIVE, false);
332+
HashMap<ClickHouseOption, Serializable> fifoOption = new HashMap<>();
333+
fifoOption.put(ClickHouseClientOption.CONNECTION_TTL, 1000L);
334+
fifoOption.put(ClickHouseHttpOption.CONNECTION_REUSE_STRATEGY, "FIFO");
332335
return new Object[][] {
333336
{ Collections.singletonMap(ClickHouseClientOption.CONNECTION_TTL, 1000L), 2 },
334337
{ Collections.singletonMap(ClickHouseClientOption.CONNECTION_TTL, 2000L), 1 },
335338
{ Collections.singletonMap(ClickHouseHttpOption.KEEP_ALIVE_TIMEOUT, 2000L), 1 },
336339
{ Collections.singletonMap(ClickHouseHttpOption.KEEP_ALIVE_TIMEOUT, 500L), 2 },
337340
{ disabledKeepAlive, 2 },
341+
{ fifoOption, 2 }
338342
};
339343
}
340344

0 commit comments

Comments
 (0)