Skip to content

Commit 1e9e8f0

Browse files
committed
Add tests for keepAlive
1 parent d30d2ef commit 1e9e8f0

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

jdbc/src/test/java/tech/ydb/jdbc/YdbDriverTablesTest.java

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,8 @@ public void defaultModeTest() throws SQLException {
5959

6060
connection.createStatement().execute(CREATE_TABLE);
6161

62+
Assertions.assertTrue(connection.isValid(10));
63+
6264
LocalDate ld = LocalDate.of(2017, 12, 3);
6365
String prefix = "text-value-";
6466
int idx = 0;
@@ -141,6 +143,8 @@ public void customQueriesTest() throws SQLException {
141143

142144
conn.createStatement().execute(CREATE_TABLE);
143145

146+
Assertions.assertTrue(conn.isValid(10));
147+
144148
LocalDate ld = LocalDate.of(2017, 12, 3);
145149
String prefix = "text-value-";
146150
int idx = 0;
@@ -219,6 +223,8 @@ public void forceScanAndBulkTest() throws SQLException {
219223

220224
conn.createStatement().execute(CREATE_TABLE);
221225

226+
Assertions.assertTrue(conn.isValid(10));
227+
222228
LocalDate ld = LocalDate.of(2017, 12, 3);
223229
String prefix = "text-value-";
224230
int idx = 0;
@@ -330,6 +336,8 @@ public void streamResultsTest() throws SQLException {
330336

331337
conn.createStatement().execute(CREATE_TABLE);
332338

339+
Assertions.assertTrue(conn.isValid(10));
340+
333341
LocalDate ld = LocalDate.of(2017, 12, 3);
334342
String prefix = "text-value-";
335343
int idx = 0;
@@ -454,6 +462,8 @@ public void tableServiceModeTest() throws SQLException {
454462

455463
connection.createStatement().execute(CREATE_TABLE);
456464

465+
Assertions.assertTrue(connection.isValid(10));
466+
457467
LocalDate ld = LocalDate.of(2017, 12, 3);
458468
String prefix = "text-value-";
459469
int idx = 0;

0 commit comments

Comments
 (0)