Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
brentstone committed May 7, 2024
1 parent 3c12716 commit 294519c
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions crates/tests/src/integration/ledger_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1428,8 +1428,6 @@ fn change_validator_metadata() -> Result<()> {
// 1. start the ledger node
let (node, _services) = setup::setup()?;

println!("\ndbg0\n");

// 2. Query the validator metadata loaded from genesis
let metadata_query_args = vec![
"validator-metadata",
Expand All @@ -1442,6 +1440,7 @@ fn change_validator_metadata() -> Result<()> {
run(&node, Bin::Client, metadata_query_args.clone())
});
assert_matches!(captured.result, Ok(_));
assert!(captured.contains("No validator name"));
assert!(captured.contains("Email:"));
assert!(captured.contains("No description"));
assert!(captured.contains("No website"));
Expand All @@ -1454,6 +1453,8 @@ fn change_validator_metadata() -> Result<()> {
"change-metadata",
"--validator",
"validator-0-validator",
"--name",
"theokayestvalidator",
"--email",
"[email protected]",
"--description",
Expand All @@ -1474,6 +1475,7 @@ fn change_validator_metadata() -> Result<()> {
run(&node, Bin::Client, metadata_query_args.clone())
});
assert_matches!(captured.result, Ok(_));
assert!(captured.contains("Validator name: theokayestvalidator"));
assert!(captured.contains("Email: [email protected]"));
assert!(captured.contains(
"Description: We are just an okay validator node trying to get by"
Expand Down Expand Up @@ -1502,6 +1504,7 @@ fn change_validator_metadata() -> Result<()> {
let captured =
CapturedOutput::of(|| run(&node, Bin::Client, metadata_query_args));
assert_matches!(captured.result, Ok(_));
assert!(captured.contains("Validator name: theokayestvalidator"));
assert!(captured.contains("Email: [email protected]"));
assert!(captured.contains(
"Description: We are just an okay validator node trying to get by"
Expand Down

0 comments on commit 294519c

Please sign in to comment.