mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-01-19 05:45:21 +01:00
invoices+htlcswitch: fix style nits
This commit is contained in:
parent
61f48ccf4e
commit
f2bb4ff559
@ -931,9 +931,8 @@ func TestMppPayment(t *testing.T) {
|
||||
// invoice.
|
||||
func TestMppPaymentWithOverpayment(t *testing.T) {
|
||||
t.Parallel()
|
||||
defer timeout()()
|
||||
|
||||
f := func(overpayment_rand uint64) bool {
|
||||
f := func(overpaymentRand uint64) bool {
|
||||
ctx := newTestContext(t, nil)
|
||||
|
||||
// Add the invoice.
|
||||
@ -949,7 +948,7 @@ func TestMppPaymentWithOverpayment(t *testing.T) {
|
||||
}
|
||||
|
||||
// We constrain overpayment amount to be [1,1000].
|
||||
overpayment := lnwire.MilliSatoshi((overpayment_rand % 999) + 1)
|
||||
overpayment := lnwire.MilliSatoshi((overpaymentRand % 999) + 1)
|
||||
|
||||
// Send htlc 1.
|
||||
hodlChan1 := make(chan interface{}, 1)
|
||||
@ -999,7 +998,7 @@ func TestMppPaymentWithOverpayment(t *testing.T) {
|
||||
|
||||
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)
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user