invoices+htlcswitch: fix style nits

This commit is contained in:
Keagan McClelland
2023-07-07 13:17:01 -06:00
parent 61f48ccf4e
commit f2bb4ff559

View File

@@ -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)
} }
} }