mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-09-30 20:23:55 +02:00
itest+lntest: fix flake in MPP-related tests
This commit is contained in:
@@ -1513,13 +1513,14 @@ func (h *HarnessTest) AssertNumHTLCsAndStage(hn *node.HarnessNode,
|
||||
lnutils.SpewLogClosure(target.PendingHtlcs)())
|
||||
}
|
||||
|
||||
for i, htlc := range target.PendingHtlcs {
|
||||
for _, htlc := range target.PendingHtlcs {
|
||||
if htlc.Stage == stage {
|
||||
continue
|
||||
}
|
||||
|
||||
return fmt.Errorf("HTLC %d got stage: %v, "+
|
||||
"want stage: %v", i, htlc.Stage, stage)
|
||||
return fmt.Errorf("HTLC %s got stage: %v, "+
|
||||
"want stage: %v", htlc.Outpoint, htlc.Stage,
|
||||
stage)
|
||||
}
|
||||
|
||||
return nil
|
||||
|
Reference in New Issue
Block a user