Skip to content

Fix test assertions - #121

Merged
justing-bq merged 1 commit into
apache-odbcfrom
fixAssertions
Oct 16, 2025
Merged

Fix test assertions#121
justing-bq merged 1 commit into
apache-odbcfrom
fixAssertions

Conversation

@justing-bq

Copy link
Copy Markdown

Rationale for this change

Many of the test assertions are of the form EXPECT_ which allows the test to continue even after failing the assertion. Updating this to ASSERT_ causes the test to stop immediately after failing the assertion.

What changes are included in this PR?

Updated EXPECT_ to ASSERT_ where appropriate.
Placed ODBC calls directly in assertion instead of asserting on a return code.

Are these changes tested?

Yes

Are there any user-facing changes?

No.

Comment thread cpp/src/arrow/flight/sql/odbc/tests/columns_test.cc
Comment thread cpp/src/arrow/flight/sql/odbc/tests/statement_test.cc Outdated
Comment thread cpp/src/arrow/flight/sql/odbc/tests/odbc_test_suite.cc Outdated
Comment thread cpp/src/arrow/flight/sql/odbc/tests/odbc_test_suite.cc
Comment thread cpp/src/arrow/flight/sql/odbc/tests/odbc_test_suite.cc Outdated
Comment thread cpp/src/arrow/flight/sql/odbc/tests/odbc_test_suite.cc Outdated
Comment thread cpp/src/arrow/flight/sql/odbc/tests/statement_attr_test.cc Outdated

@alinaliBQ alinaliBQ left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@justing-bq
justing-bq merged commit f36d7e9 into apache-odbc Oct 16, 2025
22 of 24 checks passed
@justing-bq
justing-bq deleted the fixAssertions branch October 20, 2025 20:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants