Skip to content
Snippets Groups Projects
Unverified Commit c7f8db83 authored by Jean-Paul Calderone's avatar Jean-Paul Calderone
Browse files

Make the test more reasonable

parent 52bd8bae
No related branches found
No related tags found
1 merge request!81Add web interface for lease maintenance activity monitoring
......@@ -130,6 +130,11 @@ from ..resource import (
from_configuration,
)
from ..storage_common import (
BYTES_PER_PASS,
required_passes,
)
from .strategies import (
tahoe_configs,
client_unpaidredeemer_configurations,
......@@ -444,7 +449,7 @@ class UnblindedTokenTests(TestCase):
tahoe_configs(),
lists(
lists(
integers(min_value=0),
integers(min_value=0, max_value=2 ** 63 - 1),
min_size=1,
),
),
......@@ -463,7 +468,7 @@ class UnblindedTokenTests(TestCase):
total = 0
activity = root.store.start_lease_maintenance()
for sizes in size_observations:
total += sum(sizes)
total += required_passes(BYTES_PER_PASS, sizes)
activity.observe(sizes)
activity.finish()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment