Skip to content

Fix RedisAvailableRule #2796

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

marcphilipp
Copy link
Contributor

@marcphilipp marcphilipp commented Mar 8, 2019

Prior to this commit, RedisAvailableRule.apply() threw an
AssumptionViolatedException when Redis was unavailable. That caused
the execution of the current test class and all pending test methods to
be stopped immediately. Instead, it now returns a Statement that
throws the exception in case Redis is unavailable which will only skip
the current test.

Resolves #2782.

@garyrussell
Copy link
Contributor

Excellent; thanks for the contribution. Do you want to add your name to the @author list?

@marcphilipp marcphilipp force-pushed the fix-redis-available-rule branch from 4f968e4 to 097d6b0 Compare March 8, 2019 16:35
@marcphilipp
Copy link
Contributor Author

Done. 🙂

@marcphilipp marcphilipp force-pushed the fix-redis-available-rule branch from 097d6b0 to 4dc8677 Compare March 8, 2019 16:38
Prior to this commit, `RedisAvailableRule.apply()` threw an
`AssumptionViolatedException` when Redis was unavailable. That caused
the execution of the current test class and all pending test methods to
be stopped immediately. Instead, it now returns a `Statement` that
throws the exception in case Redis is unavailable which will only skip
the current test.

Resolves spring-projects#2782.
@marcphilipp marcphilipp force-pushed the fix-redis-available-rule branch from 4dc8677 to f56a0ca Compare March 8, 2019 16:40
@marcphilipp
Copy link
Contributor Author

I've now also fixed a typo in the commit message and removed a superfluous blank line.

@garyrussell garyrussell merged commit 7f806bd into spring-projects:master Mar 8, 2019
@garyrussell
Copy link
Contributor

Many thanks!

@marcphilipp marcphilipp deleted the fix-redis-available-rule branch March 8, 2019 16:46
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