Skip to content

Commit

Permalink
test/e2e/proposal_submission: wait for proposal to be committed
Browse files Browse the repository at this point in the history
  • Loading branch information
tzemanovic committed Jul 11, 2023
1 parent 6de8993 commit f1874ea
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion tests/src/e2e/ledger_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2893,7 +2893,7 @@ fn proposal_submission() -> Result<()> {
run_as!(test, Who::Validator(0), Bin::Node, &["ledger"], Some(40))?;

wait_for_wasm_pre_compile(&mut ledger)?;
let _bg_ledger = ledger.background();
let bg_ledger = ledger.background();

let validator_one_rpc = get_actor_rpc(&test, &Who::Validator(0));

Expand Down Expand Up @@ -2944,6 +2944,11 @@ fn proposal_submission() -> Result<()> {
client.exp_string("Transaction is valid.")?;
client.assert_success();

// Wait for the proposal to be committed
let mut ledger = bg_ledger.foreground();
ledger.exp_string("Committed block hash")?;
let _bg_ledger = ledger.background();

// 3. Query the proposal
let proposal_query_args = vec![
"query-proposal",
Expand Down

0 comments on commit f1874ea

Please sign in to comment.