paymentsdb: fix linter
This commit is contained in:
2 files changed
+7
-4
No files matched your search
@@ -44,10 +44,10 @@ type PaymentWriter interface {
|
|||||||
// its database operations. This interface represents the control flow of how
|
// its database operations. This interface represents the control flow of how
|
||||||
// a payment should be handled in the database. They are not just writing
|
// a payment should be handled in the database. They are not just writing
|
||||||
// operations but they inherently represent the flow of a payment. The methods
|
// operations but they inherently represent the flow of a payment. The methods
|
||||||
// are called in the following order:
|
// are called in the following order.
|
||||||
//
|
//
|
||||||
// 1. InitPayment
|
// 1. InitPayment.
|
||||||
// 2. RegisterAttempt (a payment can have multiple attempts)
|
// 2. RegisterAttempt (a payment can have multiple attempts).
|
||||||
// 3. SettleAttempt or FailAttempt (attempts can also fail as long as the
|
// 3. SettleAttempt or FailAttempt (attempts can also fail as long as the
|
||||||
// sending amount will be eventually settled).
|
// sending amount will be eventually settled).
|
||||||
// 4. Payment succeeds or "Fail" is called.
|
// 4. Payment succeeds or "Fail" is called.
|
||||||
|
|||||||
@@ -1387,7 +1387,10 @@ func TestSwitchFail(t *testing.T) {
|
|||||||
require.NoError(t, err, "unable to fail payment hash")
|
require.NoError(t, err, "unable to fail payment hash")
|
||||||
|
|
||||||
// Verify the status is indeed Failed.
|
// Verify the status is indeed Failed.
|
||||||
assertDBPaymentstatus(t, paymentDB, info.PaymentIdentifier, StatusFailed)
|
assertDBPaymentstatus(
|
||||||
|
t, paymentDB, info.PaymentIdentifier, StatusFailed,
|
||||||
|
)
|
||||||
|
|
||||||
assertPaymentInfo(
|
assertPaymentInfo(
|
||||||
t, paymentDB, info.PaymentIdentifier, info, &failReason, nil,
|
t, paymentDB, info.PaymentIdentifier, info, &failReason, nil,
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in new issue
Block a user