Commit 495247e
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% TagSwitchedToShorterChain1 parent 283fcfd commit 495247e
File tree
1 file changed
+2
-2
lines changed- ouroboros-consensus/test/storage-test/Test/Ouroboros/Storage/ChainDB
1 file changed
+2
-2
lines changedLines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
985 | 985 | | |
986 | 986 | | |
987 | 987 | | |
988 | | - | |
| 988 | + | |
989 | 989 | | |
990 | | - | |
| 990 | + | |
991 | 991 | | |
992 | 992 | | |
993 | 993 | | |
| |||
0 commit comments