mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-11-10 14:17:56 +01:00
invoices+htlcswitch: fix style nits
This commit is contained in:
@@ -931,9 +931,8 @@ func TestMppPayment(t *testing.T) {
|
|||||||
// invoice.
|
// invoice.
|
||||||
func TestMppPaymentWithOverpayment(t *testing.T) {
|
func TestMppPaymentWithOverpayment(t *testing.T) {
|
||||||
t.Parallel()
|
t.Parallel()
|
||||||
defer timeout()()
|
|
||||||
|
|
||||||
f := func(overpayment_rand uint64) bool {
|
f := func(overpaymentRand uint64) bool {
|
||||||
ctx := newTestContext(t, nil)
|
ctx := newTestContext(t, nil)
|
||||||
|
|
||||||
// Add the invoice.
|
// Add the invoice.
|
||||||
@@ -949,7 +948,7 @@ func TestMppPaymentWithOverpayment(t *testing.T) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// We constrain overpayment amount to be [1,1000].
|
// We constrain overpayment amount to be [1,1000].
|
||||||
overpayment := lnwire.MilliSatoshi((overpayment_rand % 999) + 1)
|
overpayment := lnwire.MilliSatoshi((overpaymentRand % 999) + 1)
|
||||||
|
|
||||||
// Send htlc 1.
|
// Send htlc 1.
|
||||||
hodlChan1 := make(chan interface{}, 1)
|
hodlChan1 := make(chan interface{}, 1)
|
||||||
@@ -999,7 +998,7 @@ func TestMppPaymentWithOverpayment(t *testing.T) {
|
|||||||
|
|
||||||
return inv.AmtPaid == testInvoice.Terms.Value+overpayment
|
return inv.AmtPaid == testInvoice.Terms.Value+overpayment
|
||||||
}
|
}
|
||||||
if err := quick.Check(f, &quick.Config{MaxCount: 50}); err != nil {
|
if err := quick.Check(f, nil); err != nil {
|
||||||
t.Fatalf("amount incorrect: %v", err)
|
t.Fatalf("amount incorrect: %v", err)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user