We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 40945a9 commit 4ac0e73Copy full SHA for 4ac0e73
pallets/admin-utils/src/tests/mod.rs
@@ -2631,6 +2631,13 @@ fn test_trim_to_max_allowed_uids() {
2631
// Actual number of neurons on the network updated after trimming
2632
assert_eq!(SubnetworkN::<Test>::get(netuid), new_max_n);
2633
2634
+ for i in 0..new_max_n {
2635
+ let i = i as u16;
2636
+ let hotkey = Keys::<Test>::get(netuid, i);
2637
+ let uid = Uids::<Test>::get(netuid, hotkey);
2638
+ assert_eq!(uid.unwrap(), i);
2639
+ }
2640
+
2641
// Non existent subnet
2642
assert_err!(
2643
AdminUtils::sudo_trim_to_max_allowed_uids(
0 commit comments