From 493f9dbea2373c2603a611ad4045144fe47decd6 Mon Sep 17 00:00:00 2001 From: Max Date: Fri, 19 Dec 2025 19:48:00 +0800 Subject: [PATCH] Update test case for SerpAPIProvider to reflect new query and expected result - Changed the query in the `TestSerpAPIProviderWithAssistantConfig` from "Yao App Engine" to "golang programming language" to align with updated test expectations. - Updated the expected result assertion to match the new query, ensuring the test accurately verifies the functionality of the search handler. --- agent/search/handlers/web/serpapi_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/agent/search/handlers/web/serpapi_test.go b/agent/search/handlers/web/serpapi_test.go index a4637e5d..0a6ae6b1 100644 --- a/agent/search/handlers/web/serpapi_test.go +++ b/agent/search/handlers/web/serpapi_test.go @@ -39,7 +39,7 @@ func TestSerpAPIProviderWithAssistantConfig(t *testing.T) { // Execute search req := &types.Request{ - Query: "Yao App Engine", + Query: "golang programming language", Type: types.SearchTypeWeb, Source: types.SourceAuto, Limit: 5, @@ -51,7 +51,7 @@ func TestSerpAPIProviderWithAssistantConfig(t *testing.T) { // Verify result structure assert.Equal(t, types.SearchTypeWeb, result.Type) - assert.Equal(t, "Yao App Engine", result.Query) + assert.Equal(t, "golang programming language", result.Query) assert.Equal(t, types.SourceAuto, result.Source) // API key must be valid - search should succeed