Skip to content

Commit

Permalink
for clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
yito88 committed Aug 15, 2023
1 parent 9f22c92 commit 44850de
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 7 deletions.
8 changes: 4 additions & 4 deletions tests/src/e2e/helpers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -506,10 +506,10 @@ pub fn make_hermes_config(test_a: &Test, test_b: &Test) -> Result<()> {
telemetry.insert("port".to_owned(), Value::Integer(3001));
config.insert("telemetry".to_owned(), Value::Table(telemetry));

let mut chains = Vec::new();
chains.push(make_hermes_chain_config(test_a));
chains.push(make_hermes_chain_config(test_b));

let chains = vec![
make_hermes_chain_config(test_a),
make_hermes_chain_config(test_b),
];
config.insert("chains".to_owned(), Value::Array(chains));

let toml_string = toml::to_string(&Value::Table(config)).unwrap();
Expand Down
7 changes: 6 additions & 1 deletion tests/src/e2e/ibc_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,9 @@ use prost::Message;
use setup::constants::*;
use tendermint_light_client::components::io::{Io, ProdIo as TmLightClientIo};

use crate::e2e::helpers::{find_address, get_actor_rpc, get_validator_pk};
use crate::e2e::helpers::{
find_address, get_actor_rpc, get_validator_pk, wait_for_wasm_pre_compile,
};
use crate::e2e::setup::{
self, run_hermes_cmd, set_ethereum_bridge_mode, setup_hermes, sleep, Bin,
NamadaCmd, Test, Who,
Expand Down Expand Up @@ -275,6 +277,9 @@ fn run_two_nets() -> Result<(NamadaCmd, NamadaCmd, Test, Test)> {
ledger_a.exp_string("This node is a validator")?;
ledger_b.exp_string("This node is a validator")?;

wait_for_wasm_pre_compile(&mut ledger_a)?;
wait_for_wasm_pre_compile(&mut ledger_b)?;

// wait for the first block
ledger_a.exp_regex("Committed block .* height: 2")?;
ledger_b.exp_regex("Committed block .* height: 2")?;
Expand Down
4 changes: 2 additions & 2 deletions tests/src/e2e/setup.rs
Original file line number Diff line number Diff line change
Expand Up @@ -840,7 +840,7 @@ pub fn setup_hermes(test_a: &Test, test_b: &Test) -> Result<()> {
let wallet_dir_a = wallet_dir.join(chain_a_id);
std::fs::create_dir_all(&wallet_dir_a).unwrap();
std::fs::copy(
wallet::wallet_file(chain_dir.clone()),
wallet::wallet_file(chain_dir),
wallet::wallet_file(wallet_dir_a),
)
.unwrap();
Expand All @@ -850,7 +850,7 @@ pub fn setup_hermes(test_a: &Test, test_b: &Test) -> Result<()> {
let wallet_dir_b = wallet_dir.join(chain_b_id);
std::fs::create_dir_all(&wallet_dir_b).unwrap();
std::fs::copy(
wallet::wallet_file(chain_dir.clone()),
wallet::wallet_file(chain_dir),
wallet::wallet_file(wallet_dir_b),
)
.unwrap();
Expand Down

0 comments on commit 44850de

Please sign in to comment.