mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-10-11 15:13:31 +02:00
test: correct error message for htlc error propagation test
This commit is contained in:
@@ -1554,8 +1554,8 @@ func testHtlcErrorPropagation(net *networkHarness, t *harnessTest) {
|
|||||||
t.Fatalf("payment should have been rejected due to wrong " +
|
t.Fatalf("payment should have been rejected due to wrong " +
|
||||||
"HTLC amount")
|
"HTLC amount")
|
||||||
} else if !strings.Contains(err.Error(), "htlc value") {
|
} else if !strings.Contains(err.Error(), "htlc value") {
|
||||||
t.Fatalf("payment should have failed due to unknown preimage, "+
|
t.Fatalf("payment should have failed due to wrong amount, "+
|
||||||
"instead failed due to : %v", err)
|
"instead failed due to: %v", err)
|
||||||
}
|
}
|
||||||
|
|
||||||
// The balances of all parties should be the same as initially since
|
// The balances of all parties should be the same as initially since
|
||||||
|
Reference in New Issue
Block a user