Skip to content

Commit

Permalink
test progress state
Browse files Browse the repository at this point in the history
  • Loading branch information
Vovke committed May 27, 2024
1 parent 8e22e07 commit a3304e8
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 11 deletions.
2 changes: 1 addition & 1 deletion chopsticks/pd-ah.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
endpoint: wss://polkadot-asset-hub-rpc.polkadot.io
endpoint: wss://statemint.api.onfinality.io/public-ws

import-storage:
System:
Expand Down
2 changes: 1 addition & 1 deletion configs/chopsticks.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ debug = true
in-memory-db = true

[[chain]]
name = "chop-assethub-polkadot"
name = "statemint"
endpoints = [
"ws://localhost:8000"
]
Expand Down
13 changes: 4 additions & 9 deletions tests/integration_tests.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// ensure you have chopsticks installed: npm install -g @acala-network/chopsticks
// if running locally, ensure that you have no dangling processes (kalatori daemon, chopsticks)
// pkill -f kalatori; pkill -f chopsticks

Expand All @@ -16,13 +17,9 @@ lazy_static! {

async fn start_chopsticks() -> std::io::Result<Child> {
let mut command = Command::new("npx");
command.args(&[
"@acala-network/chopsticks@latest",
"-c",
"chopsticks/pd-ah.yml",
]);
command.args(&["@acala-network/chopsticks@latest", "-c", "chopsticks/pd-ah.yml"]);
let chopsticks = command.spawn()?;
sleep(Duration::from_secs(3)).await; // Give Chopsticks some time to start
sleep(Duration::from_secs(10)).await; // Give Chopsticks some time to start
Ok(chopsticks)
}

Expand Down Expand Up @@ -54,7 +51,7 @@ fn load_chain_config() {

async fn start_daemon() -> std::io::Result<Child> {
let daemon = Command::new("target/debug/kalatori").spawn()?;
sleep(Duration::from_secs(3)).await; // Give the daemon some time to start
sleep(Duration::from_secs(10)).await; // Give the daemon some time to start
Ok(daemon)
}

Expand Down Expand Up @@ -143,8 +140,6 @@ async fn test_daemon_status_call() {
assert_eq!(properties.decimals, 10);
assert_eq!(properties.rpc_url, "ws://localhost:8000");
// those are wrong atm
assert!(properties.asset_id.is_none());
assert_eq!(properties.ss58, 0);
}
}

Expand Down

0 comments on commit a3304e8

Please sign in to comment.