Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
brentstone committed Sep 4, 2024
1 parent bbb14f9 commit dfbc29c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 9 deletions.
14 changes: 7 additions & 7 deletions crates/governance/src/vp/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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();

Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down
3 changes: 1 addition & 2 deletions crates/tests/src/integration/ledger_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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));

Expand Down

0 comments on commit dfbc29c

Please sign in to comment.