itest: fix flake in testRevokedCloseRetributionZeroValueRemoteOutput

We need to mine an empty block as the tx may already have entered the
mempool. This should be fixed once we start using the sweeper to handle
the justice tx.
This commit is contained in:
yyforyongyu 2024-11-02 12:13:32 +08:00
parent c07162603d
commit 66b35018b8
No known key found for this signature in database
GPG Key ID: 9BCD95C4FF296868

View File

@ -612,7 +612,7 @@ func revokedCloseRetributionRemoteHodlCase(ht *lntest.HarnessTest,
// transactions will be in the mempool at this point, we pass 0
// as the last argument, indicating we don't care what's in the
// mempool.
ht.MineBlocks(1)
ht.MineEmptyBlocks(1)
err = wait.NoError(func() error {
txid, err := findJusticeTx()
if err != nil {