mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-09 03:18:44 +00:00
test(proxy): isolate live route scheduler
This commit is contained in:
parent
3f36fe6420
commit
e0726859ef
1 changed files with 2 additions and 0 deletions
|
|
@ -50,6 +50,8 @@ def test_public_live_websockets_reach_live_auth_before_legacy_sideband(monkeypat
|
|||
authenticate = AsyncMock(side_effect=HTTPException(403, "Live authentication rejected"))
|
||||
monkeypatch.setattr(live, "_auth", authenticate)
|
||||
monkeypatch.setattr(proxy_server, "general_settings", {})
|
||||
# A previous proxy test may leave the module scheduler bound to a closed loop.
|
||||
monkeypatch.setattr(proxy_server, "scheduler", None)
|
||||
with TestClient(proxy_server.app) as client:
|
||||
with pytest.raises(WebSocketDisconnect):
|
||||
with client.websocket_connect(prefix + "/sessions" + suffix, headers={"authorization": "Bearer test"}):
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue