Skip to content

Commit

Permalink
Add tests for keepAlive
Browse files Browse the repository at this point in the history
  • Loading branch information
alex268 committed Jan 20, 2025
1 parent d30d2ef commit 1e9e8f0
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions jdbc/src/test/java/tech/ydb/jdbc/YdbDriverTablesTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,8 @@ public void defaultModeTest() throws SQLException {

connection.createStatement().execute(CREATE_TABLE);

Assertions.assertTrue(connection.isValid(10));

LocalDate ld = LocalDate.of(2017, 12, 3);
String prefix = "text-value-";
int idx = 0;
Expand Down Expand Up @@ -141,6 +143,8 @@ public void customQueriesTest() throws SQLException {

conn.createStatement().execute(CREATE_TABLE);

Assertions.assertTrue(conn.isValid(10));

LocalDate ld = LocalDate.of(2017, 12, 3);
String prefix = "text-value-";
int idx = 0;
Expand Down Expand Up @@ -219,6 +223,8 @@ public void forceScanAndBulkTest() throws SQLException {

conn.createStatement().execute(CREATE_TABLE);

Assertions.assertTrue(conn.isValid(10));

LocalDate ld = LocalDate.of(2017, 12, 3);
String prefix = "text-value-";
int idx = 0;
Expand Down Expand Up @@ -330,6 +336,8 @@ public void streamResultsTest() throws SQLException {

conn.createStatement().execute(CREATE_TABLE);

Assertions.assertTrue(conn.isValid(10));

LocalDate ld = LocalDate.of(2017, 12, 3);
String prefix = "text-value-";
int idx = 0;
Expand Down Expand Up @@ -454,6 +462,8 @@ public void tableServiceModeTest() throws SQLException {

connection.createStatement().execute(CREATE_TABLE);

Assertions.assertTrue(connection.isValid(10));

LocalDate ld = LocalDate.of(2017, 12, 3);
String prefix = "text-value-";
int idx = 0;
Expand Down

0 comments on commit 1e9e8f0

Please sign in to comment.