lnwallet: update testListTransactionDetails to account for tx fee

This commit is contained in:
Olaoluwa Osuntokun
2017-11-23 22:02:33 -06:00
parent c437f42227
commit 1b716e6c87
2 changed files with 6 additions and 2 deletions

View File

@@ -852,7 +852,11 @@ func testListTransactionDetails(miner *rpctest.Harness,
t.Fatalf("num confs incorrect, got %v expected %v",
txDetail.NumConfirmations, 1)
}
if txDetail.Value != -outputAmt {
// We assert that the value is greater than the amount we
// attempted to send, as the wallet should've paid some amount
// of network fees.
if txDetail.Value >= -outputAmt {
fmt.Println(spew.Sdump(txDetail))
t.Fatalf("tx value incorrect, got %v expected %v",
int64(txDetail.Value), -int64(outputAmt))