-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[Notifier] use a clock to create datetime instances #57099
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
Conversation
xabbuh
commented
May 24, 2024
Q | A |
---|---|
Branch? | 7.2 |
Bug fix? | no |
New feature? | yes |
Deprecations? | no |
Issues | |
License | MIT |
#54756 (comment) made me think that we should rather use a clock to be able to properly mock the time in tests. If we agree on this approach, I'll update the other Notifier bridges as well. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I like it 👍
839b8a9
to
c1d6297
Compare
c1d6297
to
e9ffb8c
Compare
I updated all places in the Notifier component where we could use a clock. |
Thank you @xabbuh. |
…n the FrameworkBundle (xabbuh) This PR was merged into the 7.2 branch. Discussion ---------- [FrameworkBundle] wire a clock for the BlueSky transport in the FrameworkBundle | Q | A | ------------- | --- | Branch? | 7.2 | Bug fix? | yes | New feature? | no | Deprecations? | no | Issues | | License | MIT following #57099 and #57434 Commits ------- 35f8cf5 wire a clock for the BlueSky transport in the FrameworkBundle