Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix flakey e2e #1700

Merged
merged 2 commits into from
Jul 13, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 13 additions & 3 deletions 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 Expand Up @@ -4413,8 +4418,13 @@ fn double_signing_gets_slashed() -> Result<()> {

// 2. Copy the first genesis validator base-dir
let validator_0_base_dir = test.get_base_dir(&Who::Validator(0));
let validator_0_base_dir_copy =
test.test_dir.path().join("validator-0-copy");
let validator_0_base_dir_copy = test
.test_dir
.path()
.join(test.net.chain_id.as_str())
.join(client::utils::NET_ACCOUNTS_DIR)
.join("validator-0-copy")
.join(namada_apps::config::DEFAULT_BASE_DIR);
fs_extra::dir::copy(
validator_0_base_dir,
&validator_0_base_dir_copy,
Expand Down
Loading