Skip to content

Make it easier to debug test failures due to incorrect http-data #6318

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

Merged
merged 1 commit into from
Apr 13, 2023

Conversation

arlosi
Copy link
Contributor

@arlosi arlosi commented Apr 12, 2023

When tests fail due to a difference in the body of an HTTP request, it shows up as an escaped string vs a Vec of bytes.

This makes the assert compare the base64 encoded strings (which is what's actually in the JSON http data file).

r? @Turbo87

@Turbo87 Turbo87 added the C-internal 🔧 Category: Nonessential work that would make the codebase more consistent or clear label Apr 13, 2023
Copy link
Member

@Turbo87 Turbo87 left a comment

Choose a reason for hiding this comment

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

that's quite literally exactly what I had on my dbg/base64-recorder branch that I mentioned yesterday 😅

I do have an idea how we can make this even better, but I'll merge this in the meantime 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-backend ⚙️ C-internal 🔧 Category: Nonessential work that would make the codebase more consistent or clear
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants