test(ollama): keep slow gcp primary on ollama
This commit is contained in:
@@ -132,11 +132,11 @@ class TestDecideRoute:
|
||||
assert "gemini" in provider_names
|
||||
|
||||
# ------------------------------------------------------------------
|
||||
# GCP-A SLOW → primary=Gemini(SSD 慢時仍切雲端)
|
||||
# GCP-A SLOW → primary=GCP-A(高負載時仍優先保住本地/代理 Ollama)
|
||||
# ------------------------------------------------------------------
|
||||
|
||||
def test_gcp_a_slow_primary_is_gemini(self):
|
||||
"""GCP-A SLOW → primary=Gemini"""
|
||||
def test_gcp_a_slow_primary_is_ollama_gcp_a(self):
|
||||
"""GCP-A SLOW → primary=GCP-A,避免過早切 Gemini"""
|
||||
manager = self._setup()
|
||||
h_gcp_a = _make_health(HealthStatus.SLOW, URL_GCP_A)
|
||||
h_gcp_b = _offline_health(URL_GCP_B)
|
||||
@@ -151,7 +151,7 @@ class TestDecideRoute:
|
||||
url_local=URL_LOCAL,
|
||||
)
|
||||
|
||||
assert result.primary.provider_name == "gemini"
|
||||
assert result.primary.provider_name == "ollama_gcp_a"
|
||||
|
||||
# ------------------------------------------------------------------
|
||||
# GCP-A DEGRADED → primary=Gemini
|
||||
|
||||
Reference in New Issue
Block a user