From 4d6809bc2deeb00daf288940047af3ecff85a736 Mon Sep 17 00:00:00 2001 From: Thomas Miceli <27960254+thomiceli@users.noreply.github.com> Date: Sat, 27 Dec 2025 21:29:52 +0800 Subject: [PATCH] Feat/fix test (#577) --- internal/index/indexer_test.go | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/internal/index/indexer_test.go b/internal/index/indexer_test.go index c8470c3..a01a018 100644 --- a/internal/index/indexer_test.go +++ b/internal/index/indexer_test.go @@ -475,7 +475,7 @@ func testIndexerSearchBasic(t *testing.T, indexer Indexer) { // Test 2: Search by specific language - Go t.Run("SearchByLanguage", func(t *testing.T) { metadata := SearchGistMetadata{Language: "Go"} - gistIDs, total, _, err := indexer.Search("", metadata, 1, 1) + _, total, _, err := indexer.Search("", metadata, 1, 1) if err != nil { t.Fatalf("Search by language failed: %v", err) } @@ -484,17 +484,6 @@ func testIndexerSearchBasic(t *testing.T, indexer Indexer) { if total != 334 { t.Errorf("Expected 334 Go gists, got %d", total) } - // Verify GistID 1 (i=0) is in results - foundGoGist := false - for _, id := range gistIDs { - if id == 1 { - foundGoGist = true - break - } - } - if !foundGoGist && len(gistIDs) > 0 { - t.Error("Expected to find GistID 1 (Go) in results") - } }) // Test 3: Search by specific username - alice