@@ -383,13 +383,14 @@ func TestAccountService(t *testing.T) {
383383 // Assert that the invoice subscription succeeded.
384384 require .Contains (t , s .invoiceToAccount , testHash )
385385
386- // But setting up the payment tracking should have failed.
386+ // But setting up the payment tracking should have
387+ // failed.
387388 require .False (t , s .IsRunning ())
388389
389- // Finally let's assert that we didn't successfully add the
390- // payment to pending payment, and that lnd isn't awaiting
391- // the payment request.
392- require .NotContains (t , s .pendingPayments , testHash )
390+ // Finally let's assert that we didn't successfully add
391+ // the payment to pending payment, and that lnd isn't
392+ // awaiting the payment request.
393+ require .False (t , s .hasPayment ( testHash ) )
393394 r .assertNoPaymentRequest (t )
394395 },
395396 }, {
@@ -426,7 +427,9 @@ func TestAccountService(t *testing.T) {
426427 // This will cause an error send an update over
427428 // the payment channel, which should disable the
428429 // service.
429- s .pendingPayments = make (map [lntypes.Hash ]* trackedPayment )
430+ s .pendingPayments = make (
431+ map [lntypes.Hash ]* trackedPayment ,
432+ )
430433
431434 // Send an invalid payment over the payment chan
432435 // which should error and disable the service
@@ -568,7 +571,7 @@ func TestAccountService(t *testing.T) {
568571 return p .Status == lnrpc .Payment_FAILED
569572 })
570573
571- require .NotContains (t , s .pendingPayments , testHash2 )
574+ require .False (t , s .hasPayment ( testHash2 ) )
572575
573576 // Finally, if an unknown payment turns out to be
574577 // a non-initiated payment, we should stop the tracking
@@ -616,7 +619,7 @@ func TestAccountService(t *testing.T) {
616619
617620 // Ensure that the payment was removed from the pending
618621 // payments.
619- require .NotContains (t , s .pendingPayments , testHash3 )
622+ require .False (t , s .hasPayment ( testHash3 ) )
620623 },
621624 }, {
622625 name : "keep track of invoice indexes" ,
0 commit comments