From 971ae3c7442f4b7144f1716f39430d501fe8b847 Mon Sep 17 00:00:00 2001 From: Conner Fromknecht Date: Fri, 10 Aug 2018 14:02:50 -0700 Subject: [PATCH] htlcswitch/control_tower_test: move from switch_control_test --- htlcswitch/{switch_control_test.go => control_tower_test.go} | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) rename htlcswitch/{switch_control_test.go => control_tower_test.go} (97%) diff --git a/htlcswitch/switch_control_test.go b/htlcswitch/control_tower_test.go similarity index 97% rename from htlcswitch/switch_control_test.go rename to htlcswitch/control_tower_test.go index 021ef1da..cf0258dd 100644 --- a/htlcswitch/switch_control_test.go +++ b/htlcswitch/control_tower_test.go @@ -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) } }