Skip to content

Commit 6da8621

Browse files
authored
Merge pull request #5246 from IntersectMBO/nm/exunits-too-big-test-failures
Increase the max `ExUnits` in `AlonzoEraGen`
2 parents 9d0817c + c471546 commit 6da8621

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

eras/alonzo/test-suite/src/Test/Cardano/Ledger/Alonzo/AlonzoEraGen.hs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -406,16 +406,16 @@ bigStep = 99999
406406
genMaxTxExUnits :: Gen ExUnits
407407
genMaxTxExUnits =
408408
ExUnits
409-
-- Accommodate the maximum number of scripts in a transaction
410-
<$> genNatural (10 * bigMem + 1) (20 * bigMem + 1)
411-
<*> genNatural (10 * bigStep + 1) (20 * bigStep + 1)
409+
-- Accommodate at least 20 of our scripts in a transaction
410+
<$> genNatural (20 * bigMem + 1) (30 * bigMem + 1)
411+
<*> genNatural (20 * bigStep + 1) (30 * bigStep + 1)
412412

413413
genMaxBlockExUnits :: Gen ExUnits
414414
genMaxBlockExUnits =
415415
ExUnits
416-
-- Accommodate the maximum number of scripts in all transactions in a block
417-
<$> genNatural (60 * bigMem + 1) (100 * bigMem + 1)
418-
<*> genNatural (60 * bigStep + 1) (100 * bigStep + 1)
416+
-- Accommodate at least 20 of our transactions in a block
417+
<$> genNatural (20 * 20 * bigMem + 1) (20 * 30 * bigMem + 1)
418+
<*> genNatural (20 * 20 * bigStep + 1) (20 * 30 * bigStep + 1)
419419

420420
instance EraGen AlonzoEra where
421421
genEraAuxiliaryData = genAux

0 commit comments

Comments
 (0)