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

Use failWithActualExpectedAndMessage() where possible #5696

Merged
merged 1 commit into from
Nov 25, 2024

Conversation

izeye
Copy link
Contributor

@izeye izeye commented Nov 21, 2024

This PR changes to use failWithActualExpectedAndMessage() where possible.

See gh-5550

@@ -116,8 +116,14 @@ public SELF doesNotHaveRemainingCurrentObservationSameAs(Observation observation
public SELF hasRemainingCurrentObservationSameAs(Observation observation) {
isNotNull();
Observation current = actual.getCurrentObservation();
if (current == null) {
Copy link
Contributor Author

@izeye izeye Nov 21, 2024

Choose a reason for hiding this comment

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

I changed this to align with the hasRemainingCurrentScopeSameAs() along the way.

@shakuzen shakuzen added type: task A general task module: micrometer-observation-test enhancement A general enhancement and removed type: task A general task labels Nov 25, 2024
@shakuzen shakuzen added this to the 1.15.0-M1 milestone Nov 25, 2024
@shakuzen shakuzen merged commit 9537358 into micrometer-metrics:main Nov 25, 2024
8 checks passed
@izeye izeye deleted the polish-gh-5550 branch November 25, 2024 08:11
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.

2 participants