Skip to content

test(cache): skip redis cache tests when connection fails #1457

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

Merged

Conversation

Bapawe
Copy link
Contributor

@Bapawe Bapawe commented Aug 4, 2025

Skip Redis cache tests when connection is unavailable, following the same pattern used in other Redis tests.

Problem: The test suite was failing on the cache tests in my DDEV environment where Redis runs in a separate container (host: redis). Since no host is explicitly specified in the test configuration, the Redis client falls back to localhost, causing connection failures and a failing test.

This also means Redis tests cannot be executed by developers whose environments run Redis with non-default connection settings, but i don't think that's a big issue.

@innocenzi maybe you can take a look at this since you've done most work on the Redis related code.

@innocenzi innocenzi merged commit cf504ad into tempestphp:main Aug 5, 2025
108 of 112 checks passed
@innocenzi
Copy link
Member

Thank you!

@Bapawe Bapawe deleted the fix/skip-redis-connection-failed-tests branch August 6, 2025 12:27
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