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

Spec Improvements: Cleanup API Logs after each controllers test #1405

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Ivanov-Anton
Copy link
Collaborator

Clean up the API Logs table after each controller/requests test.

Since we introduced the new feature (YETIWEB-1396, Async writing to API log), the API logs are not reverted by postgres within transaction inside test env because the API log is created within a separate Thread. Therefore, the API logs table grows and the number of records grows during API testing.

I suggest using this cleanup in general for all API specifications to ensure that each test is not affected to another test and its precondition.

@Ivanov-Anton Ivanov-Anton self-assigned this Jan 10, 2024
@Ivanov-Anton Ivanov-Anton marked this pull request as draft January 10, 2024 16:56
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.

None yet

1 participant