Skip to content

Commit

Permalink
fix: test warning
Browse files Browse the repository at this point in the history
  • Loading branch information
Supremesource committed Dec 3, 2024
1 parent 819b881 commit d5b0bc4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/src/subnet_emission.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1348,6 +1348,8 @@ fn decrypted_weight_run_result_is_applied_and_cleaned_up() {
let first_miner_uid = register_module(netuid, first_miner, to_nano(1), false).unwrap();
let second_miner_uid = register_module(netuid, second_miner, to_nano(1), false).unwrap();

SubnetConsensusType::<Test>::insert(netuid, SubnetConsensus::Yuma);

pallet_subspace::MinFees::<Test>::set(pallet_subspace::MinimumFees {
stake_delegation_fee: Percent::from_percent(0),
validator_weight_fee: Percent::from_percent(0),
Expand Down Expand Up @@ -1520,6 +1522,7 @@ fn rotate_decryption_node() {

// one subnet with decryption node set
pallet_subnet_emission::DecryptionNodeCursor::<Test>::set(1);
SubnetConsensusType::<Test>::insert(netuid, SubnetConsensus::Yuma);

pallet_subnet_emission::Pallet::<Test>::handle_decrypted_weights(netuid, vec![]);

Expand Down

0 comments on commit d5b0bc4

Please sign in to comment.