Skip to content

Commit

Permalink
refactor: use test networks file path
Browse files Browse the repository at this point in the history
  • Loading branch information
evilrobot-01 committed Jun 5, 2024
1 parent 442c1ae commit addc0ea
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -108,18 +108,18 @@ pop build parachain --release
You can spawn a local network using [zombienet](https://github.com/paritytech/zombienet-sdk) as follows:

```shell
pop up parachain -f ./tests/zombienet.toml -p https://github.com/r0gue-io/pop-node
pop up parachain -f ./tests/networks/pop.toml
```

> :information_source: Pop CLI will automatically source the necessary polkadot binaries. Currently, these will be built
> if on a non-linux system.
> :information_source: Pop CLI will automatically source the necessary polkadot binaries.
### Run a command after the network has been spun up

The following will spin up the network locally according the the zombienet file and once the network is up, it will run the command specified in `--cmd`:
The following will spin up the network locally according the the zombienet file and once the network is up, it will run
the command specified in `--cmd`:

```shell
pop up parachain -f ./tests/zombienet.toml -p https://github.com/r0gue-io/pop-node --cmd ./path/to/my/script
pop up parachain -f ./tests/networks/pop.toml --cmd ./path/to/my/script
```

### Contracts
Expand Down
2 changes: 1 addition & 1 deletion crates/pop-parachains/src/up.rs
Original file line number Diff line number Diff line change
Expand Up @@ -831,7 +831,7 @@ mod tests {
use super::*;
use anyhow::Result;

const CONFIG_FILE_PATH: &str = "../../tests/zombienet.toml";
const CONFIG_FILE_PATH: &str = "../../tests/networks/pop.toml";
const TESTING_POLKADOT_VERSION: &str = "v1.7.0";
const POLKADOT_BINARY: &str = "polkadot-v1.7.0";
const POLKADOT_PARACHAIN_BINARY: &str = "polkadot-parachain-v1.7.0";
Expand Down
2 changes: 1 addition & 1 deletion crates/pop-parachains/tests/parachain.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ use pop_parachains::{Binary, Source, Zombienet};
use std::path::PathBuf;
use url::Url;

const CONFIG_FILE_PATH: &str = "../../tests/zombienet.toml";
const CONFIG_FILE_PATH: &str = "../../tests/networks/pop.toml";
const TESTING_POLKADOT_VERSION: &str = "v1.7.0";
const POLKADOT_BINARY: &str = "polkadot-v1.7.0";
const POLKADOT_SDK: &str = "https://github.com/paritytech/polkadot-sdk";
Expand Down

0 comments on commit addc0ea

Please sign in to comment.