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

test: closing redis ressources #3117

Closed
wants to merge 36 commits into from

Conversation

euri10
Copy link
Contributor

@euri10 euri10 commented Feb 15, 2024

Description

This PR aims at closing redis ressources properly, the previous fixture uses a sync and an async redis client, the sync one is never closed.
Note that weirdly enough you cant yield the redis_client fixture, I dont get why and it took me while to realize it, if someone can explain I'm all ears.

Closes

nothing, though I think it should help flaky redis test imho

euri10 and others added 22 commits February 13, 2024 14:27
Note that close_connection_pool is required
…manually or not

Co-authored-by: Janek Nouvertné <provinzkraut@posteo.de>
Co-authored-by: Janek Nouvertné <provinzkraut@posteo.de>
Added some small notes on the test since its setup is rather cumbersome
…ve all removing the Redis sync instance created there that was never closed
@euri10 euri10 changed the title playing with redis test: closing ressources Feb 15, 2024
@euri10 euri10 changed the title test: closing ressources test: closing redis ressources Feb 22, 2024
@euri10 euri10 marked this pull request as ready for review February 22, 2024 14:22
@euri10 euri10 requested review from a team as code owners February 22, 2024 14:22
# Conflicts:
#	tests/conftest.py
Copy link

Documentation preview will be available shortly at https://litestar-org.github.io/litestar-docs-preview/3117

@euri10 euri10 marked this pull request as draft February 26, 2024 13:06
@euri10 euri10 closed this Feb 26, 2024
@euri10 euri10 deleted the redis_test_cleaning branch February 26, 2024 16:17
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