-
Notifications
You must be signed in to change notification settings - Fork 910
add user agent in http requests #7990
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
base: unstable
Are you sure you want to change the base?
Conversation
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.
I don't think we need to introduce new crate dependencies for this. We already have ways to mock the beacon api, validator api etc and make requests
Right, I don’t actually need those. They were left over from something else I was experimenting with and went unnoticed. |
#[cfg(test)] | ||
mod tests { | ||
use super::*; | ||
use mockito::{Matcher, Server}; |
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 probably won't compile now.
We still want to write a test to check that a user agent is returned, we have some examples of api tests in our repo that you can reference.
You can run our test suite via make test
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.
I'll update the PR in a couple of days.
e4be8bc
to
9e3a12d
Compare
9e3a12d
to
6eedf27
Compare
Issue Addressed
Issue #7963
Proposed Changes
lighthouse_version
crate