lnwallet: fix failure messages, spacing in tests

This commit changes t.Fatal to t.Fatalf in TestCheckDustLimit so as to
provide more information. This commit also makes some column width
adjustments and minor spelling/formatting changes.
This commit is contained in:
bryanvu
2017-04-10 00:25:32 -07:00
committed by Olaoluwa Osuntokun
parent a4ba72c08c
commit c1769f959b
2 changed files with 113 additions and 71 deletions

View File

@@ -2189,7 +2189,8 @@ func testGraphTopologyNotifications(net *networkHarness, t *harnessTest) {
chanUpdate := graphUpdate.ChannelUpdates[0]
if chanUpdate.Capacity != int64(chanAmt) {
t.Fatalf("channel capacities mismatch: expected %v, "+
"got %v", chanAmt, chanUpdate.Capacity)
"got %v", chanAmt,
btcutil.Amount(chanUpdate.Capacity))
}
switch chanUpdate.AdvertisingNode {
case net.Alice.PubKeyStr: