File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
pallets/subtensor/src/tests Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -3687,7 +3687,7 @@ fn test_do_remove_stake_clears_pending_childkeys() {
3687
3687
3688
3688
// Check that pending child exists
3689
3689
let pending_before = PendingChildKeys :: < Test > :: get ( netuid, hotkey) ;
3690
- assert ! ( pending_before. 0 . is_empty ( ) ) ;
3690
+ assert ! ( pending_before. 0 . len ( ) > 0 ) ;
3691
3691
assert ! ( pending_before. 1 > 0 ) ;
3692
3692
3693
3693
// Remove stake
@@ -3699,7 +3699,7 @@ fn test_do_remove_stake_clears_pending_childkeys() {
3699
3699
3700
3700
// Assert that pending child is removed
3701
3701
let pending_after = PendingChildKeys :: < Test > :: get ( netuid, hotkey) ;
3702
- assert_eq ! ( pending_after. 0 . len ( ) , 0 ) ; // zero child vec
3702
+ assert ! ( pending_after. 0 . is_empty ( ) ) ; // zero child vec
3703
3703
assert_eq ! ( pending_after. 1 , 0 ) ; // zero cooldown block
3704
3704
} ) ;
3705
3705
}
You can’t perform that action at this time.
0 commit comments