fix(websocket): abort disconnected HTTP handshakes before sending (#6348)

This commit is contained in:
chengyongru authored and GitHub committed 2026-10-27 20:46:47 +08:00
1 parent aacc780084
commit 927eba89ea
5 files changed
+201

No files matched your search

+6
View File
@@ -52,6 +52,12 @@ DYNAMIC_PROVIDER_NAME = "my-company-api"
DYNAMIC_PROVIDER_API_BASE = "https://example.test/v1"
@pytest.fixture(autouse=True)
def isolate_settings_config(tmp_path, monkeypatch: pytest.MonkeyPatch) -> None:
"""Settings tests must never fall through to a user's default config."""
monkeypatch.setattr("nanobot.config.loader._current_config_path", tmp_path / "config.json")
@pytest.fixture
def oauth_flows() -> WebUIOAuthFlowRegistry:
return WebUIOAuthFlowRegistry()