test: correct error message for htlc error propagation test

This commit is contained in:
Olaoluwa Osuntokun 2017-01-29 17:07:54 -08:00
parent 07f8dab560
commit f18a21fc54
No known key found for this signature in database
GPG Key ID: 9CC5B105D03521A2
1 changed files with 2 additions and 2 deletions

View File

@ -1554,8 +1554,8 @@ func testHtlcErrorPropagation(net *networkHarness, t *harnessTest) {
t.Fatalf("payment should have been rejected due to wrong " +
"HTLC amount")
} else if !strings.Contains(err.Error(), "htlc value") {
t.Fatalf("payment should have failed due to unknown preimage, "+
"instead failed due to : %v", err)
t.Fatalf("payment should have failed due to wrong amount, "+
"instead failed due to: %v", err)
}
// The balances of all parties should be the same as initially since