@@ -118,23 +118,11 @@ async fn test_reregister_all_transceivers() {
118118 . submit_with_signers ( & [ & test_data. program_owner ] , & mut ctx)
119119 . await
120120 . unwrap ( ) ;
121+ // assert threshold decreases
121122 assert_threshold ( & mut ctx, num_dummy_transceivers - idx as u8 ) . await ;
122123 }
123124
124- // deregister baked-in transceiver
125- deregister_transceiver (
126- & good_ntt,
127- DeregisterTransceiver {
128- owner : test_data. program_owner . pubkey ( ) ,
129- transceiver : example_native_token_transfers:: ID ,
130- } ,
131- )
132- . submit_with_signers ( & [ & test_data. program_owner ] , & mut ctx)
133- . await
134- . unwrap ( ) ;
135- assert_threshold ( & mut ctx, 1 ) . await ;
136-
137- // reregister dummy transceiver
125+ // reregister dummy transceivers
138126 for ( idx, transceiver) in dummy_transceivers. iter ( ) . enumerate ( ) {
139127 register_transceiver (
140128 & good_ntt,
@@ -147,6 +135,7 @@ async fn test_reregister_all_transceivers() {
147135 . submit_with_signers ( & [ & test_data. program_owner ] , & mut ctx)
148136 . await
149137 . unwrap ( ) ;
138+ // assert transceiver_id and threshold are retained
150139 assert_transceiver_id ( & mut ctx, transceiver, idx as u8 + 1 ) . await ;
151140 assert_threshold ( & mut ctx, 1 ) . await ;
152141 }
@@ -163,6 +152,7 @@ async fn test_reregister_all_transceivers() {
163152 . submit_with_signers ( & [ & test_data. program_owner ] , & mut ctx)
164153 . await
165154 . unwrap ( ) ;
155+ // assert transceiver_id and threshold are retained
166156 assert_transceiver_id ( & mut ctx, & example_native_token_transfers:: ID , 0 ) . await ;
167157 assert_threshold ( & mut ctx, 1 ) . await ;
168158}
0 commit comments