Skip to content

Commit

Permalink
enable staking-miner playground tests again (#860)
Browse files Browse the repository at this point in the history
  • Loading branch information
niklasad1 authored Jul 1, 2024
1 parent 901ec9f commit 6d8f3eb
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion staking-miner-playground/runtime/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -475,7 +475,7 @@ parameter_types! {

pub MinerMaxWeight: Weight = prod_or_enforce_trimming!(
<Runtime as frame_system::Config>::BlockWeights::get().get(DispatchClass::Normal).max_total.unwrap(),
Perbill::from_percent(85) * <Runtime as frame_system::Config>::BlockWeights::get().get(DispatchClass::Normal).max_total.unwrap()
Perbill::from_percent(86) * <Runtime as frame_system::Config>::BlockWeights::get().get(DispatchClass::Normal).max_total.unwrap()
);

// The maximum winners that can be elected by the Election pallet which is equivalent to the
Expand Down
4 changes: 1 addition & 3 deletions tests/monitor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 6d8f3eb

Please sign in to comment.