Skip to content

Commit d9aac6e

Browse files
committed
fix test
1 parent 97065fe commit d9aac6e

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

pallets/subtensor/src/tests/coinbase.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,12 +89,16 @@ fn test_coinbase_tao_issuance_base() {
8989
let subnet_owner_ck = U256::from(1001);
9090
let subnet_owner_hk = U256::from(1002);
9191
let netuid = add_dynamic_network(&subnet_owner_hk, &subnet_owner_ck);
92+
let total_issuance_before = TotalIssuance::<Test>::get();
9293
SubnetMovingPrice::<Test>::insert(netuid, I96F32::from(3141) / I96F32::from(1000));
9394
let tao_in_before = SubnetTAO::<Test>::get(netuid);
9495
let total_stake_before = TotalStake::<Test>::get();
9596
SubtensorModule::run_coinbase(U96F32::from_num(emission));
9697
assert_eq!(SubnetTAO::<Test>::get(netuid), tao_in_before + emission);
97-
assert_eq!(TotalIssuance::<Test>::get(), emission);
98+
assert_eq!(
99+
TotalIssuance::<Test>::get(),
100+
total_issuance_before + emission
101+
);
98102
assert_eq!(TotalStake::<Test>::get(), total_stake_before + emission);
99103
});
100104
}

0 commit comments

Comments
 (0)