From b867d4c66fedd5fa01b96cebc2dcd2c3350287c1 Mon Sep 17 00:00:00 2001 From: Ava Howell Date: Mon, 26 Feb 2024 05:17:10 -0800 Subject: [PATCH] fixup a few missing penumbra branches in tests --- crates/relayer/src/config.rs | 5 ++--- tools/integration-test/src/tests/fee/filter_fees.rs | 2 ++ tools/integration-test/src/tests/ica.rs | 2 ++ 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/crates/relayer/src/config.rs b/crates/relayer/src/config.rs index be27056f8f..47adadc264 100644 --- a/crates/relayer/src/config.rs +++ b/crates/relayer/src/config.rs @@ -657,11 +657,10 @@ impl ChainConfig { } } - // TODO(extract): needs to be changed to return &str so penumbra can return "" - pub fn key_name(&self) -> &String { + pub fn key_name(&self) -> &str { match self { Self::CosmosSdk(config) => &config.key_name, - Self::Penumbra(config) => &config.stub_key_name, + Self::Penumbra(_) => "", } } diff --git a/tools/integration-test/src/tests/fee/filter_fees.rs b/tools/integration-test/src/tests/fee/filter_fees.rs index a6cd76b37d..a83c14332e 100644 --- a/tools/integration-test/src/tests/fee/filter_fees.rs +++ b/tools/integration-test/src/tests/fee/filter_fees.rs @@ -31,6 +31,7 @@ impl TestOverrides for FilterIncentivizedFeesRelayerTest { ChainConfig::CosmosSdk(chain_config) => { chain_config.packet_filter = packet_filter.clone(); } + ChainConfig::Penumbra(_) => todo!(), } } } @@ -183,6 +184,7 @@ impl TestOverrides for FilterByChannelIncentivizedFeesRelayerTest { ChainConfig::CosmosSdk(chain_config) => { chain_config.packet_filter = packet_filter.clone(); } + ChainConfig::Penumbra(_) => todo!(), } } } diff --git a/tools/integration-test/src/tests/ica.rs b/tools/integration-test/src/tests/ica.rs index 03d367b675..e00f790c66 100644 --- a/tools/integration-test/src/tests/ica.rs +++ b/tools/integration-test/src/tests/ica.rs @@ -73,6 +73,7 @@ impl TestOverrides for IcaFilterTestAllow { ChainConfig::CosmosSdk(chain_config) => { chain_config.packet_filter = self.packet_filter.clone(); } + ChainConfig::Penumbra(_) => todo!(), } } } @@ -203,6 +204,7 @@ impl TestOverrides for IcaFilterTestDeny { FilterPattern::Wildcard("*".parse().unwrap()), )])); } + ChainConfig::Penumbra(_) => todo!(), } } }