Skip to content

Commit 17ca77d

Browse files
committed
mistake in test
1 parent a89b2c2 commit 17ca77d

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

pallets/subtensor/src/tests/uids.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -451,7 +451,7 @@ fn test_get_neuron_to_prune_owner_pruned_if_not_in_sn_owner_hotkey_map() {
451451
assert_eq!(pruned_uid, other_owner_uid, "Should prune the owner");
452452

453453
// Set the owner's other hotkey as the SubnetOwnerHotkey
454-
SubnetOwnerHotkey::<Test>::insert(netuid, owner_hotkey);
454+
SubnetOwnerHotkey::<Test>::insert(netuid, other_owner_hotkey);
455455

456456
// Reset pruning scores
457457
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() {
461461

462462
let pruned_uid = SubtensorModule::get_neuron_to_prune(netuid);
463463

464-
// - The pruned UID must be `uid_1` (score=1).
465-
// - The owner's UID remains unpruned.
466464
assert_eq!(
467465
pruned_uid, owner_uid,
468466
"Should prune the owner, not the top-stake owner hotkey and not the additional hotkeys"

0 commit comments

Comments
 (0)