From fee5d640988c14a9af1eda03a67aa2d47b08f2ea Mon Sep 17 00:00:00 2001 From: Kayanski Date: Tue, 9 Jan 2024 10:06:34 +0100 Subject: [PATCH] Removed useless test --- packages/cw-orch-polytone/src/deploy.rs | 52 ------------------------- 1 file changed, 52 deletions(-) diff --git a/packages/cw-orch-polytone/src/deploy.rs b/packages/cw-orch-polytone/src/deploy.rs index da98ad6..60dbbb7 100644 --- a/packages/cw-orch-polytone/src/deploy.rs +++ b/packages/cw-orch-polytone/src/deploy.rs @@ -91,55 +91,3 @@ impl Polytone { Polytone { note, voice, proxy } } } - -#[cfg(test)] -pub mod test { - use anyhow::Result as AnyResult; - use cw_orch::{ - deploy::Deploy, - prelude::{ - networks::{JUNO_1, UNI_6}, - ContractInstance, DaemonBuilder, - }, - tokio::runtime::Runtime, - }; - - use crate::Polytone; - - /// This is a dummy mnemonic to have the daemon initialized properly - pub const TEST_MNEMONIC: &str = "clip hire initial neck maid actor venue client foam budget lock catalog sweet steak waste crater broccoli pipe steak sister coyote moment obvious choose"; - - #[test] - pub fn mainnet_test() -> AnyResult<()> { - let rt = Runtime::new()?; - let chain = DaemonBuilder::default() - .chain(JUNO_1) - .handle(rt.handle()) - .mnemonic(TEST_MNEMONIC) - .build()?; - - let polytone = Polytone::load_from(chain)?; - polytone.note.code_id()?; - polytone.voice.code_id()?; - polytone.proxy.code_id()?; - - Ok(()) - } - - #[test] - pub fn testnet_test() -> AnyResult<()> { - let rt = Runtime::new()?; - let chain = DaemonBuilder::default() - .chain(UNI_6) - .handle(rt.handle()) - .mnemonic(TEST_MNEMONIC) - .build()?; - - let polytone = Polytone::load_from(chain)?; - polytone.note.code_id()?; - polytone.voice.code_id()?; - polytone.proxy.code_id()?; - - Ok(()) - } -}