diff --git a/crates/governance/src/vp/mod.rs b/crates/governance/src/vp/mod.rs index a7b8114bafd..2ec68c3076b 100644 --- a/crates/governance/src/vp/mod.rs +++ b/crates/governance/src/vp/mod.rs @@ -2187,7 +2187,7 @@ mod test { } #[test] - fn test_goverance_vote_validator_success() { + fn test_governance_vote_validator_success() { let mut state = init_storage(); let proposal_id = 0; @@ -2268,7 +2268,7 @@ mod test { let height = state.in_mem().get_block_height().0 + (7 * 2); - update_epoch_to(&mut state, 7, height); + update_epoch_to(&mut state, 6, height); let validator_address = established_address_1(); @@ -2316,7 +2316,7 @@ mod test { } #[test] - fn test_goverance_vote_validator_out_of_voting_window_fail() { + fn test_governance_vote_validator_out_of_voting_window_fail() { let mut state = init_storage(); let proposal_id = 0; @@ -2445,7 +2445,7 @@ mod test { } #[test] - fn test_goverance_vote_validator_fail() { + fn test_governance_vote_validator_fail() { let mut state = init_storage(); let proposal_id = 0; @@ -2574,7 +2574,7 @@ mod test { } #[test] - fn test_goverance_vote_delegator_success() { + fn test_governance_vote_delegator_success() { let mut state = init_storage(); let proposal_id = 0; @@ -2720,7 +2720,7 @@ mod test { } #[test] - fn test_goverance_vote_delegator_fail() { + fn test_governance_vote_delegator_fail() { let mut state = init_storage(); let proposal_id = 0; @@ -2866,7 +2866,7 @@ mod test { } #[test] - fn test_goverance_vote_invalid_verifier_fail() { + fn test_governance_vote_invalid_verifier_fail() { let mut state = init_storage(); let proposal_id = 0; diff --git a/crates/tests/src/e2e/ledger_tests.rs b/crates/tests/src/e2e/ledger_tests.rs index 4470a85e392..160338c2681 100644 --- a/crates/tests/src/e2e/ledger_tests.rs +++ b/crates/tests/src/e2e/ledger_tests.rs @@ -2134,10 +2134,9 @@ fn proposal_change_shielded_reward() -> Result<()> { let mut client = run!(test, Bin::Client, query_proposal, Some(15))?; client.exp_string("Proposal Id: 0")?; client.exp_string( - "passed with 100000.000000 yay votes, 900.000000 nay votes and \ + "Passed with 100000.000000 yay votes, 900.000000 nay votes and \ 0.000000 abstain votes, total voting power: 100900.000000, threshold \ - (fraction) of total voting power needed to tally: 67266.666667 \ - (0.666666666669)", + (fraction) of total voting power needed to tally: 40360.000000 (0.4)", )?; client.assert_success(); diff --git a/crates/tests/src/integration/ledger_tests.rs b/crates/tests/src/integration/ledger_tests.rs index dffd07e9085..dcad01c9198 100644 --- a/crates/tests/src/integration/ledger_tests.rs +++ b/crates/tests/src/integration/ledger_tests.rs @@ -856,8 +856,7 @@ fn proposal_submission() -> Result<()> { let expected = regex::escape( "Passed with 120000.000000 yay votes, 900.000000 nay votes and \ 0.000000 abstain votes, total voting power: 120900.000000, threshold \ - (fraction) of total voting power needed to tally: 80600.000000 \ - (0.666666666666)", + (fraction) of total voting power needed to tally: 48360.000000 (0.4)", ); assert!(captured.contains(&expected));