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

Cleanup test databases to avoid side-effects #927

Merged
merged 1 commit into from
Jan 6, 2024

Conversation

bevzzz
Copy link
Contributor

@bevzzz bevzzz commented Nov 3, 2023

While working on #926 I noticed that many tests did not properly tear down the database schema they create, which results in side-effects to other tests.

Existing tests were not affected, but the ones I wrote for the other PR were, as they rely on having a clean schema.
In general, I think leaving no side-effects is a good unit test practice.

@vmihailenco vmihailenco merged commit 6044ecf into uptrace:master Jan 6, 2024
3 checks passed
@vmihailenco
Copy link
Member

Thanks!

@bevzzz bevzzz deleted the test/cleanup-db branch August 11, 2024 11:34
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