Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Files
F7066669
D8192.id29568.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Subscribers
None
D8192.id29568.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
@@ -778,7 +778,7 @@
swh_storage.directory_add(directories)
for directory in directories:
- assert directory == Directory(
+ actual_directory = Directory(
id=directory.id,
entries=tuple(
stream_results(swh_storage.directory_get_entries, directory.id)
@@ -787,6 +787,12 @@
directory.id
],
)
+ if directory.raw_manifest is None:
+ assert directory == actual_directory
+ else:
+ assert directory.raw_manifest == actual_directory.raw_manifest
+ # we can't compare the other fields, because they become non-intrinsic,
+ # so they may clash between hypothesis runs
def test_directory_add_twice(self, swh_storage, sample_data):
directory = sample_data.directories[1]
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Nov 5 2024, 5:56 PM (11 w, 15 h ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3225663
Attached To
D8192: Fix flakiness in test_directory_add_get_arbitrary
Event Timeline
Log In to Comment