mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-09-02 03:54:26 +02:00
htlcswitch: expect proper error in TestChannelLinkExpiryTooSoonMidNode
This commit is contained in:
@@ -1008,7 +1008,7 @@ func TestChannelLinkExpiryTooSoonMidNode(t *testing.T) {
|
|||||||
if err == nil {
|
if err == nil {
|
||||||
t.Fatalf("payment should have failed due to a too early " +
|
t.Fatalf("payment should have failed due to a too early " +
|
||||||
"time lock value")
|
"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 "+
|
t.Fatalf("incorrect error, expected final time lock too "+
|
||||||
"early, instead have: %v", err)
|
"early, instead have: %v", err)
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user