Skip to content

Commit

Permalink
Update tests/generators/ssz_generic/ssz_container.py
Browse files Browse the repository at this point in the history
Co-authored-by: Hsiao-Wei Wang <hsiaowei.eth@gmail.com>
  • Loading branch information
wenceslas-sanchez and hwwhww committed Aug 3, 2023
1 parent 5612e7a commit 522ab42
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/generators/ssz_generic/ssz_container.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ def valid_cases():
# Notes: Below is the second wave of iteration, and only the random mode is selected
# for container without offset since ``RandomizationMode.mode_zero`` and ``RandomizationMode.mode_max``
# are deterministic.
modes = [RandomizationMode.mode_random] if len(offsets) != 0 else list(RandomizationMode)
modes = [RandomizationMode.mode_random] if len(offsets) == 0 else list(RandomizationMode)
for mode in modes:
for variation in range(10):
yield f'{name}_{mode.to_name()}_{variation}', \
Expand Down

0 comments on commit 522ab42

Please sign in to comment.