lntest+itest: make sure mempool is cleaned in watcher tower test

This commit adds the missing check for anchor sweep in test
`revoked_uncooperative_close_retribution_altruist_watchtower`, also
change the mempool check a bit so it's easier to track.
This commit is contained in:
yyforyongyu committed 2023-01-16 16:49:19 +08:00
1 parent 6792ca17b4
commit 8df5de3e43
2 files changed
+8 -6

No files matched your search

+5
View File
@@ -849,6 +849,11 @@ func testRevokedCloseRetributionAltruistWatchtowerCase(ht *lntemp.HarnessTest,
ht.AssertNumPendingForceClose(dave, 0)
// If this is an anchor channel, Dave would sweep the anchor.
if anchors {
ht.MineBlocksAndAssertNumTxes(1, 1)
}
// Check that Dave's wallet balance is increased.
err = wait.NoError(func() error {
daveBalResp := dave.RPC.WalletBalance()