htlcswitch: expect proper error in TestChannelLinkExpiryTooSoonMidNode

This commit is contained in:
Olaoluwa Osuntokun committed 2017-08-02 21:30:32 -07:00
1 parent 8369ae9b92
commit b1205e71ec
1 file changed
+1 -1
+1 -1
View File
@@ -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)
}