Skip to content

Commit

Permalink
chore: updates from using real weights in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Samuel Dare committed Jun 17, 2024
1 parent eeac5e6 commit 7ea2604
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions pallets/subtensor/tests/serving.rs
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ fn test_serving_subscribe_ok_dispatch_info_ok() {
assert_eq!(
call.get_dispatch_info(),
DispatchInfo {
weight: frame_support::weights::Weight::from_parts(46_000_000, 0),
weight: frame_support::weights::Weight::from_parts(246_000_000, 0),
class: DispatchClass::Normal,
pays_fee: Pays::No
}
Expand Down Expand Up @@ -295,7 +295,7 @@ fn test_prometheus_serving_subscribe_ok_dispatch_info_ok() {
assert_eq!(
call.get_dispatch_info(),
DispatchInfo {
weight: frame_support::weights::Weight::from_parts(45_000_000, 0),
weight: frame_support::weights::Weight::from_parts(245_000_000, 0),
class: DispatchClass::Normal,
pays_fee: Pays::No
}
Expand Down
4 changes: 2 additions & 2 deletions pallets/subtensor/tests/staking.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ fn test_add_stake_dispatch_info_ok() {
assert_eq!(
call.get_dispatch_info(),
DispatchInfo {
weight: frame_support::weights::Weight::from_parts(124_000_000, 0),
weight: frame_support::weights::Weight::from_parts(1_074_000_000, 0),
class: DispatchClass::Normal,
pays_fee: Pays::No
}
Expand Down Expand Up @@ -530,7 +530,7 @@ fn test_remove_stake_dispatch_info_ok() {
assert_eq!(
call.get_dispatch_info(),
DispatchInfo {
weight: frame_support::weights::Weight::from_parts(111_000_000, 0)
weight: frame_support::weights::Weight::from_parts(1_061_000_000, 0)
.add_proof_size(43991),
class: DispatchClass::Normal,
pays_fee: Pays::No
Expand Down

0 comments on commit 7ea2604

Please sign in to comment.