htlcswitch: expect proper error in TestChannelLinkExpiryTooSoonMidNode

This commit is contained in:
Olaoluwa Osuntokun 2017-08-02 21:30:25 -07:00
parent 8369ae9b92
commit b1205e71ec
No known key found for this signature in database
GPG Key ID: 9CC5B105D03521A2

@ -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)
}