htlcswitch: expect proper error in TestChannelLinkExpiryTooSoonMidNode
This commit is contained in:
parent
8369ae9b92
commit
b1205e71ec
@ -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)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user