@@ -4186,10 +4186,7 @@ fn test_merge_updates_e2e() {
41864186 let expected_tx_count = wallet. wollet . transactions ( ) . unwrap ( ) . len ( ) ;
41874187 let expected_utxo_count = wallet. wollet . utxos ( ) . unwrap ( ) . len ( ) ;
41884188 let num_updates_before = wallet. wollet . updates ( ) . unwrap ( ) . len ( ) ;
4189- assert_eq ! (
4190- num_updates_before, 4 ,
4191- "Expected multiple updates before merge, got {num_updates_before}"
4192- ) ;
4189+ assert_eq ! ( num_updates_before, 4 ) ;
41934190
41944191 let descriptor = wallet. wollet . wollet_descriptor ( ) ;
41954192 let network = ElementsNetwork :: default_regtest ( ) ;
@@ -4217,12 +4214,7 @@ fn test_merge_updates_e2e() {
42174214 assert_eq ! ( expected_utxo_count, wollet. utxos( ) . unwrap( ) . len( ) ) ;
42184215
42194216 let updates_after = wollet. updates ( ) . unwrap ( ) ;
4220- assert_eq ! (
4221- updates_after. len( ) ,
4222- 1 ,
4223- "Updates should be merged into 1, got {}" ,
4224- updates_after. len( )
4225- ) ;
4217+ assert_eq ! ( updates_after. len( ) , 1 ) ;
42264218
42274219 // Verify the merged wallet can be reopened and still has correct state
42284220 drop ( wollet) ;
@@ -4246,23 +4238,14 @@ fn test_merge_updates_e2e() {
42464238 let tx = wollet. finalize ( & mut pset) . unwrap ( ) ;
42474239 let phantom_txid = tx. txid ( ) ;
42484240 wollet. apply_transaction ( tx) . unwrap ( ) ;
4249- assert ! (
4250- wollet. transaction( & phantom_txid) . unwrap( ) . is_some( ) ,
4251- "Phantom tx should be in wallet after apply_transaction"
4252- ) ;
4241+ assert ! ( wollet. transaction( & phantom_txid) . unwrap( ) . is_some( ) ) ;
42534242
42544243 // Sync: electrum doesn't know about the phantom tx, so it will be deleted
42554244 let mut client = test_client_electrum ( & env. electrum_url ( ) ) ;
42564245 let update = client. full_scan ( & wollet) . unwrap ( ) . unwrap ( ) ;
4257- assert ! (
4258- update. txid_height_delete. contains( & phantom_txid) ,
4259- "Sync update should delete the phantom tx"
4260- ) ;
4246+ assert ! ( update. txid_height_delete. contains( & phantom_txid) ) ;
42614247 wollet. apply_update ( update) . unwrap ( ) ;
4262- assert ! (
4263- wollet. transaction( & phantom_txid) . unwrap( ) . is_none( ) ,
4264- "Phantom tx should be gone after sync"
4265- ) ;
4248+ assert ! ( wollet. transaction( & phantom_txid) . unwrap( ) . is_none( ) ) ;
42664249
42674250 // State should be back to what it was before the phantom tx
42684251 assert_eq ! ( expected_balance, wollet. balance( ) . unwrap( ) ) ;
@@ -4287,7 +4270,7 @@ fn test_merge_updates_e2e() {
42874270 assert_eq ! ( expected_balance, wollet. balance( ) . unwrap( ) ) ;
42884271 assert_eq ! ( expected_tx_count, wollet. transactions( ) . unwrap( ) . len( ) ) ;
42894272 assert_eq ! ( expected_utxo_count, wollet. utxos( ) . unwrap( ) . len( ) ) ;
4290- assert_eq ! ( wollet. updates( ) . unwrap( ) . len( ) , 1 , ) ;
4273+ assert_eq ! ( wollet. updates( ) . unwrap( ) . len( ) , 1 ) ;
42914274
42924275 // Final reopen to verify persistence of the merged-with-deletes state
42934276 drop ( wollet) ;
0 commit comments