From 61cc2235aee8d0223f14b923ac2b3cdb2fe05efb Mon Sep 17 00:00:00 2001 From: lukasIO Date: Thu, 3 Sep 2026 14:19:41 +0200 Subject: [PATCH] fix failing api failover tests --- tests/api/test_livekitapi.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/api/test_livekitapi.py b/tests/api/test_livekitapi.py index f84bfa48..503aa01a 100644 --- a/tests/api/test_livekitapi.py +++ b/tests/api/test_livekitapi.py @@ -544,7 +544,7 @@ async def _sip_call_error(sip: dict, *, wait: bool = False): def test_sip_busy(): err = asyncio.run(_sip_call_error({"code": 486, "status": "Busy Here"})) assert isinstance(err, ServerError) - assert err.code == "resource_exhausted" + assert err.code == "failed_precondition" assert err.sip_status_code == 486 assert err.sip_status == "Busy Here" # printable representation makes the failure clear