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

Fix unit tests after conflicting PRs merged #8393

Merged
merged 1 commit into from
Jun 17, 2024
Merged

Fix unit tests after conflicting PRs merged #8393

merged 1 commit into from
Jun 17, 2024

Conversation

pracucci
Copy link
Collaborator

What this PR does

#8379 and #8392 were merged few seconds apart, and they had conflicting changes causing CI to fail. This PR fixes it.

Which issue(s) this PR fixes or relates to

N/A

Checklist

  • Tests updated.
  • Documentation added.
  • CHANGELOG.md updated - the order of entries should be [CHANGE], [FEATURE], [ENHANCEMENT], [BUGFIX].
  • about-versioning.md updated with experimental features.

@pracucci pracucci marked this pull request as ready for review June 17, 2024 10:36
@pracucci pracucci requested a review from a team as a code owner June 17, 2024 10:36
validateClonedHeaders(t, r.GetHeaders(), newHeaders)
})
t.Run("WithStartEnd", func(t *testing.T) {
r := originalReq.WithStartEnd(100, 200)
r, err := originalReq.WithStartEnd(100, 200)
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Note to reviewers: this is the actual fix.

@@ -134,12 +134,10 @@ func TestMetricQueryRequestCloneHeaders(t *testing.T) {
}

r := originalReq.WithHeaders(newHeaders)
require.NoError(t, err)
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Note to reviewers: removed such assertions because they're useless (the line above is not returning an error and err variable is already checked)

@pracucci pracucci enabled auto-merge (squash) June 17, 2024 10:44
@pracucci pracucci mentioned this pull request Jun 17, 2024
4 tasks
Signed-off-by: Marco Pracucci <marco@pracucci.com>
@pracucci pracucci merged commit a4e1379 into main Jun 17, 2024
29 checks passed
@pracucci pracucci deleted the fix-ci branch June 17, 2024 11:27
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