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