Skip to content

Commit

Permalink
Removed useless test
Browse files Browse the repository at this point in the history
  • Loading branch information
Kayanski committed Jan 9, 2024
1 parent 33bd9ab commit fee5d64
Showing 1 changed file with 0 additions and 52 deletions.
52 changes: 0 additions & 52 deletions packages/cw-orch-polytone/src/deploy.rs
Original file line number Diff line number Diff line change
Expand Up @@ -91,55 +91,3 @@ impl<Chain: CwEnv> Polytone<Chain> {
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(())
}
}

0 comments on commit fee5d64

Please sign in to comment.