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 a7e2ad1 commit 445fae0Copy full SHA for 445fae0
pallets/subtensor/src/tests/registration.rs
@@ -526,10 +526,7 @@ fn test_burn_registration_doesnt_write_on_failure() {
526
// Make sure the neuron is not registered.
527
assert_eq!(SubtensorModule::get_subnetwork_n(netuid), 0);
528
// Make sure the hotkey is not registered.
529
- assert_eq!(
530
- SubtensorModule::get_uid_for_net_and_hotkey(netuid, &hotkey_account_id).is_err(),
531
- true
532
- );
+ assert!(SubtensorModule::get_uid_for_net_and_hotkey(netuid, &hotkey_account_id).is_err());
533
});
534
}
535
0 commit comments