From b1205e71ecb46f9a5fc4bed068436c8a5f55c487 Mon Sep 17 00:00:00 2001 From: Olaoluwa Osuntokun Date: Wed, 2 Aug 2017 21:30:25 -0700 Subject: [PATCH] htlcswitch: expect proper error in TestChannelLinkExpiryTooSoonMidNode --- htlcswitch/link_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htlcswitch/link_test.go b/htlcswitch/link_test.go index 1aa24030..156c2bd5 100644 --- a/htlcswitch/link_test.go +++ b/htlcswitch/link_test.go @@ -1008,7 +1008,7 @@ func TestChannelLinkExpiryTooSoonMidNode(t *testing.T) { if err == nil { t.Fatalf("payment should have failed due to a too early " + "time lock value") - } else if err.Error() != lnwire.CodeFinalIncorrectCltvExpiry.String() { + } else if err.Error() != lnwire.CodeExpiryTooSoon.String() { t.Fatalf("incorrect error, expected final time lock too "+ "early, instead have: %v", err) }