File tree Expand file tree Collapse file tree 1 file changed +13
-3
lines changed
pallets/subtensor/src/tests Expand file tree Collapse file tree 1 file changed +13
-3
lines changed Original file line number Diff line number Diff line change @@ -71,7 +71,11 @@ fn test_replace_neuron() {
7171 Bonds :: < Test > :: insert ( NetUidStorageIndex :: from ( netuid) , neuron_uid, vec ! [ ( 0 , 1 ) ] ) ;
7272
7373 Axons :: < Test > :: insert ( netuid, hotkey_account_id, AxonInfoOf :: default ( ) ) ;
74- NeuronCertificates :: < Test > :: insert ( netuid, hotkey_account_id, NeuronCertificateOf :: default ( ) ) ;
74+ NeuronCertificates :: < Test > :: insert (
75+ netuid,
76+ hotkey_account_id,
77+ NeuronCertificateOf :: default ( ) ,
78+ ) ;
7579 Prometheus :: < Test > :: insert ( netuid, hotkey_account_id, PrometheusInfoOf :: default ( ) ) ;
7680 AssociatedEvmAddress :: < Test > :: insert ( netuid, neuron_uid, ( evm_address, 1 ) ) ;
7781
@@ -122,8 +126,14 @@ fn test_replace_neuron() {
122126
123127 // Check axon info is reset.
124128 assert ! ( !Axons :: <Test >:: contains_key( netuid, curr_hotkey. unwrap( ) ) ) ;
125- assert ! ( !NeuronCertificates :: <Test >:: contains_key( netuid, curr_hotkey. unwrap( ) ) ) ;
126- assert ! ( !Prometheus :: <Test >:: contains_key( netuid, curr_hotkey. unwrap( ) ) ) ;
129+ assert ! ( !NeuronCertificates :: <Test >:: contains_key(
130+ netuid,
131+ curr_hotkey. unwrap( )
132+ ) ) ;
133+ assert ! ( !Prometheus :: <Test >:: contains_key(
134+ netuid,
135+ curr_hotkey. unwrap( )
136+ ) ) ;
127137
128138 // Check bonds are cleared.
129139 assert_eq ! (
You can’t perform that action at this time.
0 commit comments