From 2c816387877f95fddc6a35837bf31d474f921aec Mon Sep 17 00:00:00 2001 From: Callum Waters Date: Fri, 11 Jun 2021 14:47:55 +0200 Subject: [PATCH] e2e: fix looping problem while waiting (#6568) --- test/e2e/runner/rpc.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/e2e/runner/rpc.go b/test/e2e/runner/rpc.go index 6df7ba87b..7b2549d48 100644 --- a/test/e2e/runner/rpc.go +++ b/test/e2e/runner/rpc.go @@ -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() }