From 08fa24a169d1865b3c1b95c15fd214f47b13dd96 Mon Sep 17 00:00:00 2001 From: erhant Date: Sat, 27 Jun 2026 23:09:48 +0300 Subject: [PATCH] chore: rm redundant unit test [skip ci] --- lez/indexer/core/src/config.rs | 29 ----------------------------- 1 file changed, 29 deletions(-) diff --git a/lez/indexer/core/src/config.rs b/lez/indexer/core/src/config.rs index 580b9fbd..b5f3e810 100644 --- a/lez/indexer/core/src/config.rs +++ b/lez/indexer/core/src/config.rs @@ -43,32 +43,3 @@ impl IndexerConfig { }) } } - -#[cfg(test)] -mod tests { - use super::IndexerConfig; - - const MINIMAL_CONFIG: &str = r#"{ - "consensus_info_polling_interval": "1s", - "bedrock_config": { "addr": "http://localhost:18080" }, - "channel_id": "0101010101010101010101010101010101010101010101010101010101010101" - }"#; - - #[test] - fn allow_chain_reset_defaults_to_false() { - let config: IndexerConfig = serde_json::from_str(MINIMAL_CONFIG).unwrap(); - assert!(!config.allow_chain_reset); - } - - #[test] - fn allow_chain_reset_parses_true() { - let json = r#"{ - "consensus_info_polling_interval": "1s", - "bedrock_config": { "addr": "http://localhost:18080" }, - "channel_id": "0101010101010101010101010101010101010101010101010101010101010101", - "allow_chain_reset": true - }"#; - let config: IndexerConfig = serde_json::from_str(json).unwrap(); - assert!(config.allow_chain_reset); - } -}