-
Notifications
You must be signed in to change notification settings - Fork 344
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
agave-validator: add args tests for set-public-address #4922
base: master
Are you sure you want to change the base?
Conversation
b84c20c
to
85c8f4d
Compare
const COMMAND: &str = "set-public-address"; | ||
|
||
#[derive(Debug, PartialEq)] | ||
pub struct SetPublicAddressArg { |
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.
nit: SetPublicAddressArg
==> SetPublicAddressArgs
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.
8f90ec1 🫡
1053e09
to
8f90ec1
Compare
"Failed to parse --{arg_long} address. It must be in the HOST:PORT \ | ||
format. {err}" | ||
); | ||
exit(1); |
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.
Hard to unit test something that exits; let's hold here until we figure out what direction we want to go with error handling in #4923
Problem
#4082
Summary of Changes
extracting args parsing logic and adding tests