-
Notifications
You must be signed in to change notification settings - Fork 160
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
Fixed a few tests that didn't assert on the outcome #849
Conversation
/azp run Steeltoe.All |
Azure Pipelines successfully started running 1 pipeline(s). |
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.
LGTM. See other comment.
/azp run Steeltoe.All |
Azure Pipelines successfully started running 1 pipeline(s). |
labels.Contains(KeyValuePair.Create("method", (object)"GET")); | ||
|
||
Assert.Contains(KeyValuePair.Create("clientName", (object)"localhost:5555"), labels); | ||
Assert.Contains(KeyValuePair.Create("uri", (object)"/foo/bar"), labels); |
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.
This is the correct assertion. And the code change is correct.
|
Azure Pipelines successfully started running 1 pipeline(s). |
Kudos, SonarCloud Quality Gate passed! |
While looking at warnings from Resharper, I found some tests that didn't assert on the outcome.
After correcting these tests, some of them failed. I've adapted the target logic accordingly to make the tests succeed without changing their assumptions.
Note this is a breaking change. If taking a breaking change is not an option, we should adapt the tests instead to match the current behavior.