From 5e9af0cc67f8966d3c07465a31ff7c9c847db05d Mon Sep 17 00:00:00 2001 From: Kevin Heifner Date: Thu, 4 Apr 2024 20:34:48 -0500 Subject: [PATCH] GH-2102 Better error reporting and a bit more tolerance for trxs in block --- tests/nodeos_startup_catchup.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/nodeos_startup_catchup.py b/tests/nodeos_startup_catchup.py index c437b1e858..1ae2142f6d 100755 --- a/tests/nodeos_startup_catchup.py +++ b/tests/nodeos_startup_catchup.py @@ -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