From 63e6611e461566ad3ccbad5b306a10cbd687ccbb Mon Sep 17 00:00:00 2001 From: Marco Granelli Date: Thu, 28 Dec 2023 12:28:12 +0100 Subject: [PATCH] Fixes broken governance test --- tests/src/e2e/ledger_tests.rs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/tests/src/e2e/ledger_tests.rs b/tests/src/e2e/ledger_tests.rs index ca123601a1..60da7a9b3e 100644 --- a/tests/src/e2e/ledger_tests.rs +++ b/tests/src/e2e/ledger_tests.rs @@ -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(); @@ -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();