Skip to content

Commit

Permalink
GH-2102 Better error reporting and a bit more tolerance for trxs in b…
Browse files Browse the repository at this point in the history
…lock
  • Loading branch information
heifner committed Apr 5, 2024
1 parent 914f218 commit 5e9af0c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tests/nodeos_startup_catchup.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,9 +133,11 @@ def waitForNodeStarted(node):
steadyStateAvg=steadyStateWindowTrxs / steadyStateWindowBlks

Print("Validate transactions are generating")
minReqPctLeeway=0.9
minReqPctLeeway=0.85
minRequiredTransactions=minReqPctLeeway*transactionsPerBlock
assert steadyStateAvg>=minRequiredTransactions, "Expected to at least receive %s transactions per block, but only getting %s" % (minRequiredTransactions, steadyStateAvg)
assert steadyStateAvg>=minRequiredTransactions, \
(f"Expected to at least receive {minRequiredTransactions} transactions per block, "
f"but only getting {steadyStateAvg} for blocks {startBlockNum} - {endBlockNum}")

Print("Cycle through catchup scenarios")
twoRounds=21*2*12
Expand Down

0 comments on commit 5e9af0c

Please sign in to comment.