From 66b35018b85a9ed0427bd13960b2e13f26a74638 Mon Sep 17 00:00:00 2001 From: yyforyongyu Date: Sat, 2 Nov 2024 12:13:32 +0800 Subject: [PATCH] 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. --- itest/lnd_revocation_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/itest/lnd_revocation_test.go b/itest/lnd_revocation_test.go index 8e2638fe9..5074a3f02 100644 --- a/itest/lnd_revocation_test.go +++ b/itest/lnd_revocation_test.go @@ -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 {