File tree 1 file changed +4
-2
lines changed
pallets/subtensor/src/tests
1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -176,7 +176,7 @@ fn test_do_start_call_fail_for_set_again() {
176
176
}
177
177
178
178
#[ 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 ( ) {
180
180
new_test_ext ( 0 ) . execute_with ( || {
181
181
let netuid: u16 = 1 ;
182
182
let tempo: u16 = 13 ;
@@ -215,7 +215,9 @@ fn test_do_start_call_ok_with_updated_block_number_after_coinbase() {
215
215
216
216
step_block ( tempo) ;
217
217
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
+ }
219
221
None => assert ! ( FirstEmissionBlockNumber :: <Test >:: get( netuid) . is_some( ) ) ,
220
222
}
221
223
} ) ;
You can’t perform that action at this time.
0 commit comments