Skip to content

Commit

Permalink
tests: run integrations polkadot and kusama again (#847)
Browse files Browse the repository at this point in the history
Close #673
  • Loading branch information
niklasad1 authored Jun 12, 2024
1 parent a75871a commit eac2a66
Show file tree
Hide file tree
Showing 4 changed files with 378 additions and 4 deletions.
188 changes: 188 additions & 0 deletions chainspecs/kusama-dev.json

Large diffs are not rendered by default.

182 changes: 182 additions & 0 deletions chainspecs/polkadot-dev.json

Large diffs are not rendered by default.

6 changes: 5 additions & 1 deletion tests/common.rs
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,11 @@ pub fn run_staking_miner_playground() -> (KillChildOnDrop, String) {

/// Start a polkadot node on chain polkadot-dev, kusama-dev or westend-dev.
pub fn run_polkadot_node(chain: Chain) -> (KillChildOnDrop, String) {
let chain_str = format!("{}-dev", chain.to_string());
let chain_str = match chain {
Chain::Polkadot => "chainspecs/polkadot-dev.json",
Chain::Kusama => "chainspecs/kusama-dev.json",
Chain::Westend => "westend-dev",
};

let mut node_cmd = KillChildOnDrop(
process::Command::new("polkadot")
Expand Down
6 changes: 3 additions & 3 deletions tests/monitor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ use std::{process, time::Instant};
#[tokio::test]
async fn submit_monitor_works_basic() {
init_logger();
// TODO: https://github.com/paritytech/staking-miner-v2/issues/673
// test_submit_solution(Target::Node(Chain::Polkadot)).await;
// test_submit_solution(Target::Node(Chain::Kusama)).await;

test_submit_solution(Target::Node(Chain::Polkadot)).await;
test_submit_solution(Target::Node(Chain::Kusama)).await;
// TODO: https://github.com/paritytech/polkadot-staking-miner/issues/806
// test_submit_solution(Target::StakingMinerPlayground).await;
test_submit_solution(Target::Node(Chain::Westend)).await;
Expand Down

0 comments on commit eac2a66

Please sign in to comment.