Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

[Messenger] add missing retry strategy #59736

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
merged 1 commit into from
Feb 10, 2025
Merged

Conversation

xabbuh
Copy link
Member

@xabbuh xabbuh commented Feb 8, 2025

Q A
Branch? 7.3
Bug fix? no
New feature? no
Deprecations? no
Issues
License MIT

$listener = new SendFailedMessageForRetryListener($sendersLocator, new Container());
$retryStrategyLocator = new Container();
$retryStrategyLocator->set('my_receiver', new MultiplierRetryStrategy(0));
$listener = new SendFailedMessageForRetryListener($sendersLocator, $retryStrategyLocator);
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

without this change we would only test that a message is not retried when no retry strategy can be found (but that's already tested in the previous testNoRetryStrategyCausesNoRetry() method)

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No assert needs to be updated/added? Feels like the test is brittle if this was missing and nothing else needs an update

@nicolas-grekas
Copy link
Member

Thank you @xabbuh.

@nicolas-grekas nicolas-grekas merged commit 8addcd8 into symfony:7.3 Feb 10, 2025
10 of 11 checks passed
@xabbuh xabbuh deleted the pr-49652 branch February 10, 2025 08:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants
Morty Proxy This is a proxified and sanitized view of the page, visit original site.