From 6d8f3eb7dbfc0e9e5b194e4cf52a4fe6c424b125 Mon Sep 17 00:00:00 2001 From: Niklas Adolfsson Date: Mon, 1 Jul 2024 20:56:37 +0200 Subject: [PATCH] enable staking-miner playground tests again (#860) --- .../workflows/build-staking-miner-playground-for-nightly.yml | 4 ++-- staking-miner-playground/runtime/src/lib.rs | 2 +- tests/monitor.rs | 4 +--- 3 files changed, 4 insertions(+), 6 deletions(-) diff --git a/.github/workflows/build-staking-miner-playground-for-nightly.yml b/.github/workflows/build-staking-miner-playground-for-nightly.yml index c2ccc7c5c..6f23bad39 100644 --- a/.github/workflows/build-staking-miner-playground-for-nightly.yml +++ b/.github/workflows/build-staking-miner-playground-for-nightly.yml @@ -9,9 +9,9 @@ on: - 'staking-miner-playground/**' # Allow it to be manually ran to rebuild binary when needed: workflow_dispatch: {} - # Run at 22pm every week on Sunday's for nightly builds. + # Run at 22pm every week on Mondays for nightly builds. schedule: - - cron: "0 22 1 * *" + - cron: "0 22 * * 1" jobs: tests: diff --git a/staking-miner-playground/runtime/src/lib.rs b/staking-miner-playground/runtime/src/lib.rs index 9b129fe32..7fa632b10 100644 --- a/staking-miner-playground/runtime/src/lib.rs +++ b/staking-miner-playground/runtime/src/lib.rs @@ -475,7 +475,7 @@ parameter_types! { pub MinerMaxWeight: Weight = prod_or_enforce_trimming!( ::BlockWeights::get().get(DispatchClass::Normal).max_total.unwrap(), - Perbill::from_percent(85) * ::BlockWeights::get().get(DispatchClass::Normal).max_total.unwrap() + Perbill::from_percent(86) * ::BlockWeights::get().get(DispatchClass::Normal).max_total.unwrap() ); // The maximum winners that can be elected by the Election pallet which is equivalent to the diff --git a/tests/monitor.rs b/tests/monitor.rs index d274ed069..2bacc43a6 100644 --- a/tests/monitor.rs +++ b/tests/monitor.rs @@ -18,13 +18,11 @@ async fn submit_monitor_works_basic() { 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::StakingMinerPlayground).await; test_submit_solution(Target::Node(Chain::Westend)).await; } #[tokio::test] -#[ignore] async fn default_trimming_works() { init_logger(); let (_drop, ws_url) = run_staking_miner_playground();