(fix) r2 s3 logging test

This commit is contained in:
ishaan-jaff 2024-01-25 20:49:55 -08:00
parent 4fd2bd230f
commit fa1bbbebf1

View file

@ -198,13 +198,13 @@ def test_s3_logging_r2():
# this asserts we log, the first request + the 2nd cached request
print("we had two matches ! passed ", matches)
assert matches == 1
try:
# cleanup s3 bucket in test
for key in most_recent_keys:
s3.delete_object(Bucket=bucket_name, Key=key)
except:
# don't let cleanup fail a test
pass
# try:
# # cleanup s3 bucket in test
# for key in most_recent_keys:
# s3.delete_object(Bucket=bucket_name, Key=key)
# except:
# # don't let cleanup fail a test
# pass
except Exception as e:
pytest.fail(f"An exception occurred - {e}")
finally: