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 29974a9 commit 0ac67c9Copy full SHA for 0ac67c9
pallets/admin-utils/src/tests/mod.rs
@@ -2631,11 +2631,10 @@ 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;
+ for i in 0..new_max_n.into() {
2636
let hotkey = Keys::<Test>::get(netuid, i);
2637
let uid = Uids::<Test>::get(netuid, hotkey);
2638
- assert_eq!(uid.unwrap(), i);
+ assert_eq!(uid, Some(i));
2639
}
2640
2641
// Non existent subnet
0 commit comments