Skip to content

Commit 18f8939

Browse files
committed
Add back missing checks for error handle tests
1 parent 37100f0 commit 18f8939

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

cpp/src/arrow/flight/sql/odbc/tests/odbc_test_suite.cc

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,9 +180,20 @@ void FlightSQLOdbcV2RemoteTestBase::SetUp() {
180180
connected_ = true;
181181
}
182182

183-
void FlightSQLOdbcEnvConnHandleRemoteTestBase::SetUp() { AllocEnvConnHandles(); }
183+
void FlightSQLOdbcEnvConnHandleRemoteTestBase::SetUp() {
184+
ODBCRemoteTestBase::SetUp();
185+
if (skipping_test_) {
186+
return;
187+
}
188+
189+
AllocEnvConnHandles();
190+
}
184191

185192
void FlightSQLOdbcEnvConnHandleRemoteTestBase::TearDown() {
193+
if (skipping_test_) {
194+
return;
195+
}
196+
186197
// Free connection handle
187198
EXPECT_EQ(SQL_SUCCESS, SQLFreeHandle(SQL_HANDLE_DBC, conn));
188199

0 commit comments

Comments
 (0)