Skip to content

Reuse connections across test suite - #173

Closed
justing-bq wants to merge 1 commit into
apache-odbcfrom
reuseTestConnections
Closed

Reuse connections across test suite#173
justing-bq wants to merge 1 commit into
apache-odbcfrom
reuseTestConnections

Conversation

@justing-bq

Copy link
Copy Markdown

Rationale for this change

We avoid crashing tests on Linux if we minimize the number of connect/disconnect attempts. So now we are reusing the same connection as much as possible throughout the tests.

What changes are included in this PR?

All our necessary connections happen during global SetUp() and then they get disconnected during global TearDown().
Test Fixture SetUp is now about updating pointers to the correct environment, connection, and statement handles for those tests.

Are these changes tested?

Yes.

Are there any user-facing changes?

No.

@justing-bq
justing-bq force-pushed the reuseTestConnections branch from f5a8910 to 87be896 Compare April 17, 2026 00:31
@justing-bq justing-bq mentioned this pull request Apr 17, 2026
@justing-bq

Copy link
Copy Markdown
Author

Change included in #168

@justing-bq justing-bq closed this Apr 17, 2026
@justing-bq
justing-bq deleted the reuseTestConnections branch April 21, 2026 17:28
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.

1 participant