Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Consolidate test setup/teardown #1581

Merged
merged 11 commits into from
Nov 24, 2021
Merged

Conversation

niloc132
Copy link
Member

This patch consolidates various setup/teardown code into LiveTableTestCase for JUnit 3 tests, and DbCleanup for JUnit4 tests, and adds the DbCleanup test rule to other tests that were currently missing it. Those tests that were previously missing it often had incomplete cleanup, which has mostly been removed through this change.

Fixes #1549

@niloc132
Copy link
Member Author

One more fix that needs to be added that got lost: the various ChunkInputStreamGenerator impls need to stop closing the stream they are given, i'll add that patch and test it again.

@niloc132 niloc132 merged commit 96218b7 into deephaven:main Nov 24, 2021
@github-actions github-actions bot locked and limited conversation to collaborators Nov 24, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

QueryScope: Unit tests that install a new one should clean up in a finally block
3 participants