Skip to content

Commit 77a4436

Browse files
agustinmistaamesgengeo2atbagrel1nbacquey
committed
Tweak generation frequencies in ChainDB q-s-m tests
This commit increases the generation frequencies of both the 'genAddBlock' and 'genAddPerasCert' constructions to help producing denser chains of blocks. This way, some of the events that were harder to trigger (especially TagSwitchedToShorterChain) are much more common now: * Before: Tags (5784 in total): 39.83% TagGetIsValidJust 29.72% TagChainSelReprocessKeptSelection 27.92% TagGetIsValidNothing 2.42% TagChainSelReprocessChangedSelection 0.10% TagSwitchedToShorterChain * After: Tags (5202 in total): 38.66% TagGetIsValidJust 27.87% TagChainSelReprocessKeptSelection 26.43% TagGetIsValidNothing 5.71% TagChainSelReprocessChangedSelection 1.33% TagSwitchedToShorterChain Co-authored-by: Agustin Mista <[email protected]> Co-authored-by: Alexander Esgen <[email protected]> Co-authored-by: Georgy Lukyanov <[email protected]> Co-authored-by: Thomas BAGREL <[email protected]> Co-authored-by: Nicolas BACQUEY <[email protected]>
1 parent 5e24d68 commit 77a4436

File tree

1 file changed

+2
-2
lines changed
  • ouroboros-consensus/test/storage-test/Test/Ouroboros/Storage/ChainDB

1 file changed

+2
-2
lines changed

ouroboros-consensus/test/storage-test/Test/Ouroboros/Storage/ChainDB/StateMachine.hs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -913,9 +913,9 @@ generator ::
913913
generator loe genBlock m@Model{..} =
914914
At
915915
<$> frequency
916-
[ (30, genAddBlock)
916+
[ (100, genAddBlock)
917917
, let freq = case loe of
918-
LoEDisabled -> 10
918+
LoEDisabled -> 100
919919
-- The LoE does not yet support Peras.
920920
LoEEnabled () -> 0
921921
in (freq, AddPerasCert <$> genAddPerasCert)

0 commit comments

Comments
 (0)