Browse Source

e2e: fix looping problem while waiting (#6568)

pull/6558/head
Callum Waters 4 years ago
committed by GitHub
parent
commit
2c81638787
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      test/e2e/runner/rpc.go

+ 1
- 1
test/e2e/runner/rpc.go 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()
}


Loading…
Cancel
Save