Skip to content

Commit 5fb588a

Browse files
committed
update coinbase test case
1 parent 810f94c commit 5fb588a

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

pallets/subtensor/src/tests/subnet.rs

+4-2
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ fn test_do_start_call_fail_for_set_again() {
176176
}
177177

178178
#[test]
179-
fn test_do_start_call_ok_with_updated_block_number_after_coinbase() {
179+
fn test_do_start_call_ok_with_same_block_number_after_coinbase() {
180180
new_test_ext(0).execute_with(|| {
181181
let netuid: u16 = 1;
182182
let tempo: u16 = 13;
@@ -215,7 +215,9 @@ fn test_do_start_call_ok_with_updated_block_number_after_coinbase() {
215215

216216
step_block(tempo);
217217
match FirstEmissionBlockNumber::<Test>::get(netuid) {
218-
Some(new_emission_block_number) => assert!(new_emission_block_number > block_number),
218+
Some(new_emission_block_number) => {
219+
assert_eq!(new_emission_block_number, block_number + 1)
220+
}
219221
None => assert!(FirstEmissionBlockNumber::<Test>::get(netuid).is_some()),
220222
}
221223
});

0 commit comments

Comments
 (0)