Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Files
F9312440
D8193.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
816 B
Subscribers
None
D8193.diff
View Options
diff --git a/swh/storage/tests/storage_tests.py b/swh/storage/tests/storage_tests.py
--- a/swh/storage/tests/storage_tests.py
+++ b/swh/storage/tests/storage_tests.py
@@ -2667,9 +2667,9 @@
origins = sample_data.origins
swh_storage.origin_add(origins)
visit_type = "hg"
- # Add some visits outside of the random generation selection so nothing
- # will be found by the random selection
- visits = self._generate_random_visits(nb_visits=3, start=13, end=24)
+ # Add some visits older than 3 months so they are excluded from the random
+ # selection
+ visits = self._generate_random_visits(nb_visits=100, start=14, end=24)
for origin in origins:
for date_visit in visits:
visit = swh_storage.origin_visit_add(
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Jul 2, 10:53 AM (1 w, 5 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3217177
Attached To
D8193: Fix flakiness of test_origin_visit_status_get_random_nothing_found
Event Timeline
Log In to Comment