From 075241f8cd5835df85b63b0e41364561b8c50a50 Mon Sep 17 00:00:00 2001 From: nicole pardal Date: Tue, 28 Oct 2025 11:56:45 -0700 Subject: [PATCH] removed test redundancy --- integration/embed_test.go | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/integration/embed_test.go b/integration/embed_test.go index 432df9abc..f43ec6271 100644 --- a/integration/embed_test.go +++ b/integration/embed_test.go @@ -392,25 +392,6 @@ func TestEmbedTruncation(t *testing.T) { } }) - t.Run("truncate false error", func(t *testing.T) { - truncFalse := false - req := api.EmbedRequest{ - Model: "all-minilm", - Input: strings.Repeat("word ", 100), - Truncate: &truncFalse, - Options: map[string]any{"num_ctx": 10}, - } - - _, err := embedTestHelper(ctx, client, t, req) - if err == nil { - t.Fatal("expected error when truncate=false with long input") - } - - if !strings.Contains(err.Error(), "exceeds maximum context length") { - t.Fatalf("expected context length error, got: %v", err) - } - }) - t.Run("runner token count accuracy", func(t *testing.T) { baseline := api.EmbedRequest{Model: "all-minilm", Input: "test"} baseRes, err := embedTestHelper(ctx, client, t, baseline)