File tree 1 file changed +7
-1
lines changed
1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -131,8 +131,14 @@ fn channel_full_cycle() {
131
131
assert_eq ! ( node_b. payment( & payment_hash) . unwrap( ) . direction, PaymentDirection :: Inbound ) ;
132
132
assert_eq ! ( node_b. payment( & payment_hash) . unwrap( ) . amount_msat, Some ( invoice_amount_1_msat) ) ;
133
133
134
- // Assert we fail duplicate outbound payments.
134
+ // Assert we fail duplicate outbound payments and check the status hasn't changed .
135
135
assert_eq ! ( Err ( Error :: DuplicatePayment ) , node_a. send_payment( & invoice) ) ;
136
+ assert_eq ! ( node_a. payment( & payment_hash) . unwrap( ) . status, PaymentStatus :: Succeeded ) ;
137
+ assert_eq ! ( node_a. payment( & payment_hash) . unwrap( ) . direction, PaymentDirection :: Outbound ) ;
138
+ assert_eq ! ( node_a. payment( & payment_hash) . unwrap( ) . amount_msat, Some ( invoice_amount_1_msat) ) ;
139
+ assert_eq ! ( node_b. payment( & payment_hash) . unwrap( ) . status, PaymentStatus :: Succeeded ) ;
140
+ assert_eq ! ( node_b. payment( & payment_hash) . unwrap( ) . direction, PaymentDirection :: Inbound ) ;
141
+ assert_eq ! ( node_b. payment( & payment_hash) . unwrap( ) . amount_msat, Some ( invoice_amount_1_msat) ) ;
136
142
137
143
// Test under-/overpayment
138
144
let invoice_amount_2_msat = 1000_000 ;
You can’t perform that action at this time.
0 commit comments