Skip to content

Commit 516ec6b

Browse files
committed
Fix rebase error
1 parent 399e92d commit 516ec6b

File tree

1 file changed

+0
-36
lines changed

1 file changed

+0
-36
lines changed

flight/flight-sql-jdbc-core/src/test/java/org/apache/arrow/driver/jdbc/ConnectionTest.java

Lines changed: 0 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -630,42 +630,6 @@ public void testJdbcDriverVersionIntegration() throws Exception {
630630
}
631631
}
632632

633-
@Test
634-
public void testStatementsClosedOnConnectionClose() throws Exception {
635-
// create a connection
636-
final Properties properties = new Properties();
637-
properties.put(ArrowFlightConnectionProperty.HOST.camelName(), "localhost");
638-
properties.put(
639-
ArrowFlightConnectionProperty.PORT.camelName(), FLIGHT_SERVER_TEST_EXTENSION.getPort());
640-
properties.put(ArrowFlightConnectionProperty.USER.camelName(), userTest);
641-
properties.put(ArrowFlightConnectionProperty.PASSWORD.camelName(), passTest);
642-
properties.put("useEncryption", false);
643-
644-
Connection connection =
645-
DriverManager.getConnection(
646-
"jdbc:arrow-flight-sql://"
647-
+ FLIGHT_SERVER_TEST_EXTENSION.getHost()
648-
+ ":"
649-
+ FLIGHT_SERVER_TEST_EXTENSION.getPort(),
650-
properties);
651-
652-
// create some statements
653-
int numStatements = 3;
654-
Statement[] statements = new Statement[numStatements];
655-
for (int i = 0; i < numStatements; i++) {
656-
statements[i] = connection.createStatement();
657-
assertFalse(statements[i].isClosed());
658-
}
659-
660-
// close the connection
661-
connection.close();
662-
663-
// assert the statements are closed
664-
for (int i = 0; i < numStatements; i++) {
665-
assertTrue(statements[i].isClosed());
666-
}
667-
}
668-
669633
@Test
670634
public void testSetCatalogShouldUpdateSessionOptions() throws Exception {
671635
final Properties properties = new Properties();

0 commit comments

Comments
 (0)