Skip to content

Refactor test setup/teardown to reuse connection across tests#155

Open
justing-bq wants to merge 2 commits intoapache-odbcfrom
mockTestSetupTeardown
Open

Refactor test setup/teardown to reuse connection across tests#155
justing-bq wants to merge 2 commits intoapache-odbcfrom
mockTestSetupTeardown

Conversation

@justing-bq
Copy link

@justing-bq justing-bq commented Feb 11, 2026

Rationale for this change

Possible workaround to apache#49207 because it involves fewer setups/teardowns.

What changes are included in this PR?

Our mock test Setup/Teardown logic now happens once at the environment level.
Our test connect/disconnect now happens once per test fixture instead of once per test.

Are these changes tested?

Yes.

Are there any user-facing changes?

No.

@justing-bq justing-bq force-pushed the mockTestSetupTeardown branch 2 times, most recently from 183fa4d to 2922812 Compare February 11, 2026 19:37
@justing-bq justing-bq changed the title Handle mock setup/teardown at test suite level Handle mock setup/teardown at test environment level Feb 11, 2026
@justing-bq justing-bq force-pushed the mockTestSetupTeardown branch from 2922812 to 1f59664 Compare February 18, 2026 19:53
@justing-bq justing-bq changed the title Handle mock setup/teardown at test environment level Refactor test setup/teardown to reuse connection across tests Feb 18, 2026
@justing-bq justing-bq force-pushed the mockTestSetupTeardown branch from 1f59664 to e740c26 Compare February 18, 2026 21:06
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

Comments