Skip to content

Commit

Permalink
Remove unnecessary assert for file_size
Browse files Browse the repository at this point in the history
The file_size should be preserved in the database for traceability and other uses.
  • Loading branch information
davelopez committed Aug 9, 2024
1 parent 6a7a889 commit d905100
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions test/integration/objectstore/_purged_handling.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,7 @@ def purge_while_job_running(dataset_populator: DatasetPopulator, extra_sleep=0):
# Make sure that we don't revert state while finishing job
assert output_details["purged"], f"expected output '{output_name}' to be purged, but it is not purged."
assert not output_details.get("file_name")
assert (
output_details["file_size"] == 0
), f"expected file_size for '{output_name}' to be 0, but it is {output_details['file_size']}."

for file_name in hda_filenames:
# Make sure job didn't push to object store
assert not os.path.exists(file_name), f"Expected {file_name} to be purged."

0 comments on commit d905100

Please sign in to comment.