e2e: fix looping problem while waiting (#6568)

This commit is contained in:
Callum Waters
2021-06-11 14:47:55 +02:00
committed by GitHub
parent a456b71f1f
commit 2c81638787

View File

@@ -43,7 +43,7 @@ func waitForHeight(testnet *e2e.Testnet, height int64) (*types.Block, *types.Blo
if err != nil {
continue
}
if result.Block != nil && (maxResult == nil || result.Block.Height >= maxResult.Block.Height) {
if result.Block != nil && (maxResult == nil || result.Block.Height > maxResult.Block.Height) {
maxResult = result
lastIncrease = time.Now()
}