tests: Modify to handle changes to WalletBalance response

This commit is contained in:
Nalin Bhardwaj committed 2017-12-04 05:34:48 +05:30
1 parent a234e01c07
commit eb13be9adf
2 files changed
+6 -6

No files matched your search

+3 -3
View File
@@ -868,8 +868,8 @@ out:
return err
}
if aliceResp.Balance == expectedBalance &&
bobResp.Balance == expectedBalance {
if aliceResp.ConfirmedBalance == expectedBalance &&
bobResp.ConfirmedBalance == expectedBalance {
break out
}
case <-balanceTimeout:
@@ -1494,7 +1494,7 @@ func (n *networkHarness) SendCoins(ctx context.Context, amt btcutil.Amount,
return err
}
if currentBal.Balance == initialBalance.Balance+int64(amt) {
if currentBal.ConfirmedBalance == initialBalance.ConfirmedBalance+int64(amt) {
return nil
}
case <-balanceTimeout: