File tree Expand file tree Collapse file tree 1 file changed +10
-8
lines changed
Expand file tree Collapse file tree 1 file changed +10
-8
lines changed Original file line number Diff line number Diff line change @@ -53,11 +53,13 @@ async def test_health_check_uses_load_code_assist_endpoint(
5353 mock_client = _MockAsyncClient ()
5454 backend .client = mock_client # type: ignore[assignment]
5555
56- ok = await backend ._perform_health_check ()
57- assert ok is True
58- assert mock_client .calls , "Health check did not invoke HTTP client"
59- # The fallback should issue a POST to loadCodeAssist after initial GET fails
60- methods = [method for method , _ in mock_client .calls ]
61- assert "POST" in methods
62- post_calls = [url for method , url in mock_client .calls if method == "POST" ]
63- assert post_calls and post_calls [- 1 ].endswith ("/v1internal:loadCodeAssist" )
56+ ok = await backend ._perform_health_check ()
57+ assert ok is True
58+ assert mock_client .calls , "Health check did not invoke HTTP client"
59+ # Now only issues a POST to loadCodeAssist (fetchAvailableModels is deprecated)
60+ methods = [method for method , _ in mock_client .calls ]
61+ assert "POST" in methods
62+ assert "GET" not in methods
63+ post_calls = [url for method , url in mock_client .calls if method == "POST" ]
64+ assert post_calls and post_calls [- 1 ].endswith ("/v1internal:loadCodeAssist" )
65+
You can’t perform that action at this time.
0 commit comments