@@ -49,8 +49,7 @@ fn test_loaded_emission() {
49
49
50
50
// Try draining the emission tuples
51
51
// None remaining because we are at epoch.
52
- let block: u64 = 8 ;
53
- SubtensorModule :: drain_emission ( block) ;
52
+ SubtensorModule :: drain_emission ( ) ;
54
53
assert ! ( SubtensorModule :: get_loaded_emission_tuples( netuid) . is_none( ) ) ;
55
54
56
55
// Generate more emission.
@@ -70,7 +69,7 @@ fn test_loaded_emission() {
70
69
n_to_drain =
71
70
SubtensorModule :: tuples_to_drain_this_block ( netuid, tempo, block, tuples. len ( ) ) ;
72
71
}
73
- SubtensorModule :: drain_emission ( block ) ; // drain it with 9 more blocks to go
72
+ SubtensorModule :: drain_emission ( ) ; // drain it with 9 more blocks to go
74
73
if let Some ( tuples) = SubtensorModule :: get_loaded_emission_tuples ( netuid) {
75
74
assert_eq ! ( tuples. len( ) , n_remaining - n_to_drain) ;
76
75
}
@@ -872,7 +871,7 @@ fn test_emission_based_on_registration_status() {
872
871
873
872
let block: u64 = 0 ;
874
873
// drain the emission tuples for the subnet with registration on
875
- SubtensorModule :: drain_emission ( block ) ;
874
+ SubtensorModule :: drain_emission ( ) ;
876
875
// Turn on registration for the subnet with registration off
877
876
SubtensorModule :: set_network_registration_allowed ( netuid_off, true ) ;
878
877
SubtensorModule :: set_network_registration_allowed ( netuid_on, false ) ;
0 commit comments