lntest+itest: fix flakes found using neutrino backend
This commit makes sure the sweep requests are received before mining blocks to trigger the actual sweeping. In addition, `testFundingExpiryBlocksOnPending` is updated to deal with the old `channel link not found` issue.
This commit is contained in:
5 files changed
+43
-19
No files matched your search
@@ -785,8 +785,13 @@ func (h *HarnessTest) AssertNumUTXOsWithConf(hn *node.HarnessNode,
|
||||
return nil
|
||||
}
|
||||
|
||||
desc := "has UTXOs:\n"
|
||||
for _, utxo := range resp.Utxos {
|
||||
desc += fmt.Sprintf("%v\n", utxo)
|
||||
}
|
||||
|
||||
return errNumNotMatched(hn.Name(), "num of UTXOs",
|
||||
expectedUtxos, total-old, total, old)
|
||||
expectedUtxos, total-old, total, old, desc)
|
||||
}, DefaultTimeout)
|
||||
require.NoError(h, err, "timeout waiting for UTXOs")
|
||||
|
||||
|
||||
Reference in new issue
Block a user