mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-09-29 02:02:46 +02:00
htlcswitch/control_tower_test: move from switch_control_test
This commit is contained in:
@@ -79,7 +79,7 @@ func TestPaymentControlSwitchFail(t *testing.T) {
|
||||
t.Fatalf("unable to send htlc message: %v", err)
|
||||
}
|
||||
|
||||
pStatus, err := db.FetchPaymentStatus(htlc.PaymentHash)
|
||||
pStatus, err = db.FetchPaymentStatus(htlc.PaymentHash)
|
||||
if err != nil {
|
||||
t.Fatalf("unable to fetch payment status: %v", err)
|
||||
}
|
||||
@@ -106,7 +106,7 @@ func TestPaymentControlSwitchFail(t *testing.T) {
|
||||
|
||||
// Attempt a final payment, which should now fail since the prior
|
||||
// payment succeed.
|
||||
if err := pControl.ClearForTakeoff(htlc); err != nil {
|
||||
if err := pControl.ClearForTakeoff(htlc); err != ErrAlreadyPaid {
|
||||
t.Fatalf("unable to send htlc message: %v", err)
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user