fix flaky tests

This commit is contained in:
Ishaan Jaff 2024-08-27 22:47:11 -07:00
parent 0f999524c9
commit 64398fe123
4 changed files with 4 additions and 0 deletions

View file

@ -4078,6 +4078,7 @@ def test_completion_nvidia_nim():
# "gemini-1.5-flash",
],
)
@pytest.mark.flaky(retries=3, delay=1)
def test_completion_gemini(model):
litellm.set_verbose = True
model_name = "gemini/{}".format(model)

View file

@ -758,6 +758,7 @@ async def test_streaming_router_tpm_limit():
@pytest.mark.asyncio
@pytest.mark.flaky(retries=3, delay=1)
async def test_bad_router_call():
litellm.set_verbose = True
model_list = [

View file

@ -142,6 +142,7 @@ async def test_acompletion_caching_on_router():
@pytest.mark.asyncio
@pytest.mark.flaky(retries=3, delay=1)
async def test_completion_caching_on_router():
# tests completion + caching on router
try:

View file

@ -714,6 +714,7 @@ async def test_acompletion_claude_2_stream():
[True, False],
) # ,
@pytest.mark.asyncio
@pytest.mark.flaky(retries=3, delay=1)
async def test_completion_gemini_stream(sync_mode):
try:
litellm.set_verbose = True