multi: move FailureReason to payment package
This commit is contained in:
19 files changed
+134
-140
No files matched your search
@@ -481,7 +481,7 @@ func testKVPaymentsDBSubscribeFail(t *testing.T, registerAttempt,
|
||||
|
||||
// Mark the payment as failed.
|
||||
err = pControl.FailPayment(
|
||||
info.PaymentIdentifier, channeldb.FailureReasonTimeout,
|
||||
info.PaymentIdentifier, paymentsdb.FailureReasonTimeout,
|
||||
)
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
@@ -537,7 +537,7 @@ func testKVPaymentsDBSubscribeFail(t *testing.T, registerAttempt,
|
||||
"subscriber %v failed, want %s, got %s", i,
|
||||
paymentsdb.StatusFailed, result.GetStatus())
|
||||
|
||||
if *result.FailureReason != channeldb.FailureReasonTimeout {
|
||||
if *result.FailureReason != paymentsdb.FailureReasonTimeout {
|
||||
t.Fatal("unexpected failure reason")
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user