@@ -2071,15 +2071,15 @@ fn test_channel_reserve_holding_cell_htlcs() {
20712071 match events[ 0 ] {
20722072 Event :: PaymentReceived { ref payment_hash, ref payment_secret, amt, user_payment_id : _ } => {
20732073 assert_eq ! ( our_payment_hash_21, * payment_hash) ;
2074- assert_eq ! ( Some ( our_payment_secret_21) , * payment_secret) ;
2074+ assert_eq ! ( our_payment_secret_21, * payment_secret) ;
20752075 assert_eq ! ( recv_value_21, amt) ;
20762076 } ,
20772077 _ => panic ! ( "Unexpected event" ) ,
20782078 }
20792079 match events[ 1 ] {
20802080 Event :: PaymentReceived { ref payment_hash, ref payment_secret, amt, user_payment_id : _ } => {
20812081 assert_eq ! ( our_payment_hash_22, * payment_hash) ;
2082- assert_eq ! ( Some ( our_payment_secret_22) , * payment_secret) ;
2082+ assert_eq ! ( our_payment_secret_22, * payment_secret) ;
20832083 assert_eq ! ( recv_value_22, amt) ;
20842084 } ,
20852085 _ => panic ! ( "Unexpected event" ) ,
@@ -3647,7 +3647,7 @@ fn do_test_drop_messages_peer_disconnect(messages_delivered: u8) {
36473647 match events_2[ 0 ] {
36483648 Event :: PaymentReceived { ref payment_hash, ref payment_secret, amt, user_payment_id : _ } => {
36493649 assert_eq ! ( payment_hash_1, * payment_hash) ;
3650- assert_eq ! ( Some ( payment_secret_1) , * payment_secret) ;
3650+ assert_eq ! ( payment_secret_1, * payment_secret) ;
36513651 assert_eq ! ( amt, 1000000 ) ;
36523652 } ,
36533653 _ => panic ! ( "Unexpected event" ) ,
@@ -3984,7 +3984,7 @@ fn test_drop_messages_peer_disconnect_dual_htlc() {
39843984 match events_5[ 0 ] {
39853985 Event :: PaymentReceived { ref payment_hash, ref payment_secret, amt : _, user_payment_id : _ } => {
39863986 assert_eq ! ( payment_hash_2, * payment_hash) ;
3987- assert_eq ! ( Some ( payment_secret_2) , * payment_secret) ;
3987+ assert_eq ! ( payment_secret_2, * payment_secret) ;
39883988 } ,
39893989 _ => panic ! ( "Unexpected event" ) ,
39903990 }
0 commit comments