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

agave-validator: add args tests for set-public-address #4922

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

yihau
Copy link
Member

@yihau yihau commented Feb 11, 2025

Problem

#4082

Summary of Changes

extracting args parsing logic and adding tests

@yihau yihau mentioned this pull request Feb 11, 2025
@yihau yihau requested a review from steviez February 12, 2025 05:24
@yihau yihau force-pushed the add-set-public-address-test branch from b84c20c to 85c8f4d Compare February 14, 2025 12:10
const COMMAND: &str = "set-public-address";

#[derive(Debug, PartialEq)]
pub struct SetPublicAddressArg {
Copy link

Choose a reason for hiding this comment

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

nit: SetPublicAddressArg ==> SetPublicAddressArgs

Copy link
Member Author

@yihau yihau Feb 14, 2025

Choose a reason for hiding this comment

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

8f90ec1 🫡

@yihau yihau force-pushed the add-set-public-address-test branch from 1053e09 to 8f90ec1 Compare February 14, 2025 17:48
"Failed to parse --{arg_long} address. It must be in the HOST:PORT \
format. {err}"
);
exit(1);
Copy link

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

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