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

Testing: Add more error logging to golden checker #571

Merged
merged 5 commits into from Nov 30, 2022
Merged

Conversation

ryantxu
Copy link
Member

@ryantxu ryantxu commented Nov 29, 2022

We have some flakey tests that use the golden file checker:
grafana/grafana#59442

It is unclear how this is happening -- this PR adds the size info to the response so we can see if it is corrupted or something

@ryantxu ryantxu requested a review from a team as a code owner November 29, 2022 18:30
@ryantxu ryantxu requested review from wbrowne, marefr and toddtreece and removed request for a team November 29, 2022 18:30
if err != nil {
return "", err
}
if len(raw) < 3 {
Copy link
Member

Choose a reason for hiding this comment

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

i'm probably missing something obvious, but why wouldn't this be if len(raw) == 0 {?

Copy link
Member Author

Choose a reason for hiding this comment

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

i changed it to == 0 :)

@ryantxu ryantxu merged commit dc36d56 into main Nov 30, 2022
@ryantxu ryantxu deleted the more-error-data branch November 30, 2022 02:46
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.

None yet

3 participants