Skip to content

Commit

Permalink
fix: change port unit test is_chain_alive_works
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexD10S committed Jul 1, 2024
1 parent d4464a3 commit 622ee2c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions crates/pop-contracts/src/utils/contracts_node.rs
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ mod tests {

#[tokio::test]
async fn is_chain_alive_works() -> Result<(), Error> {
let local_url = url::Url::parse("ws://localhost:9944")?;
let local_url = url::Url::parse("ws://localhost:9920")?;
assert!(!is_chain_alive(local_url).await?);
let polkadot_url = url::Url::parse("wss://polkadot-rpc.dwellir.com")?;
assert!(is_chain_alive(polkadot_url).await?);
Expand All @@ -151,7 +151,6 @@ mod tests {
#[tokio::test]
async fn run_contracts_node_works() -> Result<(), Error> {
let local_url = url::Url::parse("ws://localhost:9944")?;
assert!(!is_chain_alive(local_url.clone()).await?);
// Run the contracts node
let temp_dir = tempfile::tempdir().expect("Could not create temp dir");
let cache = temp_dir.path().join("cache");
Expand Down

0 comments on commit 622ee2c

Please sign in to comment.