Skip to content

Commit 11319e9

Browse files
authored
fix failing api failover tests (#803)
1 parent 3f3babb commit 11319e9

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

‎README.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ try:
131131
wait_until_answered=True,
132132
))
133133
except api.SipCallError as e:
134-
print(e) # e.g. "SIP call failed: 486 Busy Here (resource_exhausted)"
134+
print(e) # e.g. "SIP call failed: 486 Busy Here (failed_precondition)"
135135
if e.sip_status_code == 486:
136136
... # busy
137137
except api.ServerError as e:

‎tests/api/test_livekitapi.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -544,7 +544,7 @@ async def _sip_call_error(sip: dict, *, wait: bool = False):
544544
def test_sip_busy():
545545
err = asyncio.run(_sip_call_error({"code": 486, "status": "Busy Here"}))
546546
assert isinstance(err, ServerError)
547-
assert err.code == "resource_exhausted"
547+
assert err.code == "failed_precondition"
548548
assert err.sip_status_code == 486
549549
assert err.sip_status == "Busy Here"
550550
# printable representation makes the failure clear

0 commit comments

Comments
 (0)