Skip to content

Commit

Permalink
try increasing conjecture coverage reliability
Browse files Browse the repository at this point in the history
  • Loading branch information
tybug committed Feb 8, 2024
1 parent f9dec08 commit 6c42078
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hypothesis-python/tests/conjecture/test_data_tree.py
Original file line number Diff line number Diff line change
Expand Up @@ -527,7 +527,7 @@ def expected_buf(data):
# this test doubles as conjecture coverage for using our child cache, so
# ensure we don't miss that logic by getting lucky and drawing the correct
# value once or twice.
for _ in range(5):
for _ in range(20):
assert tree.generate_novel_prefix(Random()) == expected_buf


Expand Down Expand Up @@ -565,7 +565,7 @@ def buf(data):
# this test doubles as conjecture coverage for drawing floats from the
# children cache. Draw a few times to ensure we hit that logic (as opposed
# to getting lucky and drawing the correct value the first time).
for _ in range(5):
for _ in range(20):
expected_value = next_up_n(min_value, 100)
prefix = tree.generate_novel_prefix(Random())
data = ConjectureData.for_buffer(prefix)
Expand Down

0 comments on commit 6c42078

Please sign in to comment.