From 1d8c623c4785ed261938a2619456b2a13ee9f6b9 Mon Sep 17 00:00:00 2001 From: Jean-Paul Calderone <exarkun@twistedmatrix.com> Date: Thu, 10 Oct 2019 13:33:32 -0400 Subject: [PATCH] Try to avoid failing the Hypothesis assumptions as much --- src/_zkapauthorizer/tests/strategies.py | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/src/_zkapauthorizer/tests/strategies.py b/src/_zkapauthorizer/tests/strategies.py index fbbb5c0..037d5a3 100644 --- a/src/_zkapauthorizer/tests/strategies.py +++ b/src/_zkapauthorizer/tests/strategies.py @@ -319,7 +319,9 @@ def sharenum_sets(): return sets( sharenums(), min_size=1, - max_size=255, + # This could go as high as 255 but to avoid tripping over the limits + # discussed in sizes(), keep it smaller. + max_size=8, ) @@ -330,8 +332,10 @@ def sizes(): return integers( # Size 0 data isn't data, it's nothing. min_value=1, - # Just for practical purposes... - max_value=2 ** 16, + # For the moment there are some assumptions in the test suite that + # limit us to an amount of storage that can be paid for with one ZKAP. + # That will be fixed eventually. For now, keep the sizes pretty low. + max_value=2 ** 8, ) @@ -342,7 +346,7 @@ def offsets(): return integers( min_value=0, # Just for practical purposes... - max_value=2 ** 16, + max_value=2 ** 8, ) -- GitLab