itest+lntest: fix flake in testListSweeps
We now make sure we assert the `ListSweeps` results in a wait closure.
This commit is contained in:
4 files changed
+76
-21
No files matched your search
+6
-1
@@ -2059,9 +2059,14 @@ func (h *HarnessTest) CalculateTxesFeeRate(txns []*wire.MsgTx) int64 {
|
||||
func (h *HarnessTest) AssertSweepFound(hn *node.HarnessNode,
|
||||
sweep string, verbose bool, startHeight int32) {
|
||||
|
||||
req := &walletrpc.ListSweepsRequest{
|
||||
Verbose: verbose,
|
||||
StartHeight: startHeight,
|
||||
}
|
||||
|
||||
err := wait.NoError(func() error {
|
||||
// List all sweeps that alice's node had broadcast.
|
||||
sweepResp := hn.RPC.ListSweeps(verbose, startHeight)
|
||||
sweepResp := hn.RPC.ListSweeps(req)
|
||||
|
||||
var found bool
|
||||
if verbose {
|
||||
|
||||
Reference in new issue
Block a user