From 62dd72deed8272d14a62ab1ec0315a267a964986 Mon Sep 17 00:00:00 2001 From: shamardy <39480341+shamardy@users.noreply.github.com> Date: Mon, 5 Aug 2024 17:04:46 +0300 Subject: [PATCH] ci(docker-tests): ignore tendermint IBC tests for now (#2185) --- .../mm2_main/tests/docker_tests/docker_tests_common.rs | 2 ++ mm2src/mm2_main/tests/docker_tests/tendermint_tests.rs | 2 ++ mm2src/mm2_main/tests/docker_tests_main.rs | 9 +++++---- 3 files changed, 9 insertions(+), 4 deletions(-) diff --git a/mm2src/mm2_main/tests/docker_tests/docker_tests_common.rs b/mm2src/mm2_main/tests/docker_tests/docker_tests_common.rs index bcb91da517..46abea6f1a 100644 --- a/mm2src/mm2_main/tests/docker_tests/docker_tests_common.rs +++ b/mm2src/mm2_main/tests/docker_tests/docker_tests_common.rs @@ -409,6 +409,7 @@ pub fn atom_node(docker: &'_ Cli, runtime_dir: PathBuf) -> DockerNode<'_> { } } +#[allow(dead_code)] pub fn ibc_relayer_node(docker: &'_ Cli, runtime_dir: PathBuf) -> DockerNode<'_> { let relayer_node_runtime_dir = runtime_dir.join("ibc-relayer-data"); assert!(relayer_node_runtime_dir.exists()); @@ -1145,6 +1146,7 @@ async fn get_current_gas_limit(web3: &Web3) { } } +#[allow(dead_code)] pub fn wait_until_relayer_container_is_ready(container_id: &str) { const Q_RESULT: &str = "0: nucleus-atom -> chns(✔) clnts(✔) conn(✔) (nucleus-testnet<>cosmoshub-testnet)"; diff --git a/mm2src/mm2_main/tests/docker_tests/tendermint_tests.rs b/mm2src/mm2_main/tests/docker_tests/tendermint_tests.rs index 80e4470d70..4165cecf2f 100644 --- a/mm2src/mm2_main/tests/docker_tests/tendermint_tests.rs +++ b/mm2src/mm2_main/tests/docker_tests/tendermint_tests.rs @@ -312,6 +312,7 @@ fn test_custom_gas_limit_on_tendermint_withdraw() { } #[test] +#[ignore] fn test_tendermint_ibc_withdraw() { // visit `{swagger_address}/ibc/core/channel/v1/channels?pagination.limit=10000` to see the full list of ibc channels const IBC_SOURCE_CHANNEL: &str = "channel-1"; @@ -358,6 +359,7 @@ fn test_tendermint_ibc_withdraw() { } #[test] +#[ignore] fn test_tendermint_ibc_withdraw_hd() { // visit `{swagger_address}/ibc/core/channel/v1/channels?pagination.limit=10000` to see the full list of ibc channels const IBC_SOURCE_CHANNEL: &str = "channel-1"; diff --git a/mm2src/mm2_main/tests/docker_tests_main.rs b/mm2src/mm2_main/tests/docker_tests_main.rs index d9c64039a0..5225f1b029 100644 --- a/mm2src/mm2_main/tests/docker_tests_main.rs +++ b/mm2src/mm2_main/tests/docker_tests_main.rs @@ -68,8 +68,8 @@ pub fn docker_tests_runner(tests: &[&TestDescAndFn]) { let runtime_dir = prepare_runtime_dir().unwrap(); let nucleus_node = nucleus_node(&docker, runtime_dir.clone()); - let atom_node = atom_node(&docker, runtime_dir.clone()); - let ibc_relayer_node = ibc_relayer_node(&docker, runtime_dir); + let atom_node = atom_node(&docker, runtime_dir); + // let ibc_relayer_node = ibc_relayer_node(&docker, runtime_dir); let utxo_node = utxo_asset_docker_node(&docker, "MYCOIN", 7000); let utxo_node1 = utxo_asset_docker_node(&docker, "MYCOIN1", 8000); let qtum_node = qtum_docker_node(&docker, 9000); @@ -90,7 +90,8 @@ pub fn docker_tests_runner(tests: &[&TestDescAndFn]) { wait_for_geth_node_ready(); init_geth_node(); - wait_until_relayer_container_is_ready(ibc_relayer_node.container.id()); + thread::sleep(Duration::from_secs(10)); + // wait_until_relayer_container_is_ready(ibc_relayer_node.container.id()); containers.push(utxo_node); containers.push(utxo_node1); @@ -99,7 +100,7 @@ pub fn docker_tests_runner(tests: &[&TestDescAndFn]) { containers.push(geth_node); containers.push(nucleus_node); containers.push(atom_node); - containers.push(ibc_relayer_node); + // containers.push(ibc_relayer_node); } // detect if docker is installed // skip the tests that use docker if not installed