Skip to content

Commit

Permalink
Add connection and channel handshake to wasm_client test
Browse files Browse the repository at this point in the history
  • Loading branch information
ljoss17 committed Jul 17, 2024
1 parent 2d0e04e commit 11ccd74
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 4 deletions.
19 changes: 17 additions & 2 deletions tools/integration-test/src/tests/wasm_client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ use core::time::Duration;
use std::path::PathBuf;
use std::thread::sleep;

use ibc_test_framework::bootstrap::binary::channel::bootstrap_channel;
use ibc_test_framework::bootstrap::binary::connection::bootstrap_connection;
use sha2::Digest;

use ibc_relayer::foreign_client::{
Expand Down Expand Up @@ -117,9 +119,22 @@ impl BinaryNodeTest for CreateAndUpdateWasmClientTest {
assert_client_refreshed(true, res);
info!("Client B to A was refreshed successfully");

let _foreign_clients = ForeignClientPair::new(client_b_to_a, client_a_to_b);
let foreign_clients = ForeignClientPair::new(client_a_to_b.clone(), client_b_to_a.clone());

//bootstrap_connection(&foreign_clients, Default::default())?;
bootstrap_connection(&foreign_clients, Default::default())?;
let port_a = DualTagged::new(PortId::transfer());
let port_b = DualTagged::new(PortId::transfer());

let _ = client_a_to_b.force_refresh();
let _ = client_b_to_a.force_refresh();

bootstrap_channel(
&foreign_clients,
&port_a.as_ref(),
&port_b.as_ref(),
Default::default(),
Default::default(),
)?;

Ok(())
}
Expand Down
3 changes: 1 addition & 2 deletions tools/test-framework/src/chain/cli/bootstrap.rs
Original file line number Diff line number Diff line change
Expand Up @@ -124,8 +124,7 @@ pub fn add_genesis_validator(
],
) {
Ok(_) => Ok(()),
Err(e) => {
tracing::warn!("{e}");
Err(_) => {
simple_exec(
chain_id,
command_path,
Expand Down

0 comments on commit 11ccd74

Please sign in to comment.