forked from phoenix/litellm-mirror
(fix) r2 s3 logging test
This commit is contained in:
parent
4fd2bd230f
commit
fa1bbbebf1
1 changed files with 7 additions and 7 deletions
|
@ -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:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue