File tree Expand file tree Collapse file tree 1 file changed +1
-3
lines changed
pallets/subtensor/src/tests Expand file tree Collapse file tree 1 file changed +1
-3
lines changed Original file line number Diff line number Diff line change @@ -451,7 +451,7 @@ fn test_get_neuron_to_prune_owner_pruned_if_not_in_sn_owner_hotkey_map() {
451
451
assert_eq ! ( pruned_uid, other_owner_uid, "Should prune the owner" ) ;
452
452
453
453
// Set the owner's other hotkey as the SubnetOwnerHotkey
454
- SubnetOwnerHotkey :: < Test > :: insert ( netuid, owner_hotkey ) ;
454
+ SubnetOwnerHotkey :: < Test > :: insert ( netuid, other_owner_hotkey ) ;
455
455
456
456
// Reset pruning scores
457
457
SubtensorModule :: set_pruning_score_for_uid ( netuid, owner_uid, 0 ) ;
@@ -461,8 +461,6 @@ fn test_get_neuron_to_prune_owner_pruned_if_not_in_sn_owner_hotkey_map() {
461
461
462
462
let pruned_uid = SubtensorModule :: get_neuron_to_prune ( netuid) ;
463
463
464
- // - The pruned UID must be `uid_1` (score=1).
465
- // - The owner's UID remains unpruned.
466
464
assert_eq ! (
467
465
pruned_uid, owner_uid,
468
466
"Should prune the owner, not the top-stake owner hotkey and not the additional hotkeys"
You can’t perform that action at this time.
0 commit comments