Skip to content

Commit

Permalink
Fixes broken governance test
Browse files Browse the repository at this point in the history
  • Loading branch information
grarco committed Jan 2, 2024
1 parent c2fa529 commit 63e6611
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions tests/src/e2e/ledger_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1992,8 +1992,8 @@ fn proposal_submission() -> Result<()> {
// this is valid because the client filter ALBERT delegation and there are
// none
let mut client = run!(test, Bin::Client, submit_proposal_vote, Some(15))?;
client.exp_string(TX_APPLIED_SUCCESS)?;
client.assert_success();
client.exp_string("Voter address must have delegations")?;
client.assert_failure();

// 11. Query the proposal and check the result
let mut epoch = get_epoch(&test, &validator_one_rpc).unwrap();
Expand All @@ -2013,7 +2013,9 @@ fn proposal_submission() -> 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 and 900.000000 nay votes (0.%)",
"passed with 100000.000000 yay votes, 900.000000 nay votes and \
0.000000 abstain votes, total voting power: 100900.000000 threshold \
was: 67266.666666",
)?;
client.assert_success();

Expand Down

0 comments on commit 63e6611

Please sign in to comment.