@@ -2072,15 +2072,15 @@ fn test_channel_reserve_holding_cell_htlcs() {
20722072 match events[ 0 ] {
20732073 Event :: PaymentReceived { ref payment_hash, ref payment_secret, amt, user_payment_id : _ } => {
20742074 assert_eq ! ( our_payment_hash_21, * payment_hash) ;
2075- assert_eq ! ( Some ( our_payment_secret_21) , * payment_secret) ;
2075+ assert_eq ! ( our_payment_secret_21, * payment_secret) ;
20762076 assert_eq ! ( recv_value_21, amt) ;
20772077 } ,
20782078 _ => panic ! ( "Unexpected event" ) ,
20792079 }
20802080 match events[ 1 ] {
20812081 Event :: PaymentReceived { ref payment_hash, ref payment_secret, amt, user_payment_id : _ } => {
20822082 assert_eq ! ( our_payment_hash_22, * payment_hash) ;
2083- assert_eq ! ( Some ( our_payment_secret_22) , * payment_secret) ;
2083+ assert_eq ! ( our_payment_secret_22, * payment_secret) ;
20842084 assert_eq ! ( recv_value_22, amt) ;
20852085 } ,
20862086 _ => panic ! ( "Unexpected event" ) ,
@@ -3648,7 +3648,7 @@ fn do_test_drop_messages_peer_disconnect(messages_delivered: u8) {
36483648 match events_2[ 0 ] {
36493649 Event :: PaymentReceived { ref payment_hash, ref payment_secret, amt, user_payment_id : _ } => {
36503650 assert_eq ! ( payment_hash_1, * payment_hash) ;
3651- assert_eq ! ( Some ( payment_secret_1) , * payment_secret) ;
3651+ assert_eq ! ( payment_secret_1, * payment_secret) ;
36523652 assert_eq ! ( amt, 1000000 ) ;
36533653 } ,
36543654 _ => panic ! ( "Unexpected event" ) ,
@@ -3985,7 +3985,7 @@ fn test_drop_messages_peer_disconnect_dual_htlc() {
39853985 match events_5[ 0 ] {
39863986 Event :: PaymentReceived { ref payment_hash, ref payment_secret, amt : _, user_payment_id : _ } => {
39873987 assert_eq ! ( payment_hash_2, * payment_hash) ;
3988- assert_eq ! ( Some ( payment_secret_2) , * payment_secret) ;
3988+ assert_eq ! ( payment_secret_2, * payment_secret) ;
39893989 } ,
39903990 _ => panic ! ( "Unexpected event" ) ,
39913991 }
0 commit comments