From 98c21b8d6c4f72a1c1813eaec3b9ccf1ff67106e Mon Sep 17 00:00:00 2001 From: rooooooooob Date: Tue, 6 Aug 2024 22:44:55 -0700 Subject: [PATCH] remove json test --- .../src/cardano/configuration.rs | 44 ------------------- 1 file changed, 44 deletions(-) diff --git a/blockchain-source/src/cardano/configuration.rs b/blockchain-source/src/cardano/configuration.rs index 4f34d9d..3ad327d 100644 --- a/blockchain-source/src/cardano/configuration.rs +++ b/blockchain-source/src/cardano/configuration.rs @@ -139,47 +139,3 @@ impl NetworkConfiguration { } } } - -#[cfg(test)] -mod tests { - use super::NetworkConfiguration; - - #[test] - fn custom_json_network() { - println!( - "{}", - deps::serde_json::to_string_pretty(&NetworkConfiguration::mainnet()).unwrap() - ); - let json = r#"{ - "chain_info": { - "network_id": 1, - "protocol_magic": 764824073 - }, - "relay": [ - "relays-new.cardano-mainnet.iohk.io.", - 3001 - ], - "from": { - "BlockHeader": { - "slot_nb": 4492800, - "hash": "aa83acbf5904c0edfe4d79b3689d3d00fcfc553cf360fd2229b98d464c28e9de" - } - }, - "genesis_parent": "5f20df933584822601f9e3f8c024eb5eb252fe8cefb24d1317dc3d432e940ebb", - "genesis": { - "BlockHeader": { - "slot_nb": 0, - "hash": "89d9b5a5b8ddc8d7e5a6795e9774d97faf1efea59b2caf7eaf9f8c5b32059df4" - } - }, - "shelley_era_config": { - "first_slot": 4492800, - "start_epoch": 208, - "known_time": 1596059091, - "slot_length": 1, - "epoch_length_seconds": 432000 - } - }"#; - let _config: NetworkConfiguration = deps::serde_json::from_str(json).unwrap(); - } -}