From 56c7c7e88356a60e41a1dc5e8661d671aa3d45b7 Mon Sep 17 00:00:00 2001 From: Mathias Bergqvist Date: Sat, 28 Dec 2024 11:10:40 +0100 Subject: [PATCH] Fixed lint errors in test cases --- llms/mistral/mistralembed_test.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/llms/mistral/mistralembed_test.go b/llms/mistral/mistralembed_test.go index c13b5fe48..e8fb018a5 100644 --- a/llms/mistral/mistralembed_test.go +++ b/llms/mistral/mistralembed_test.go @@ -11,8 +11,8 @@ import ( sdk "github.com/tmc/langchaingo/llms/mistral" ) +// TestConvertFloat64ToFloat32 tests the ConvertFloat64ToFloat32 function func TestConvertFloat64ToFloat32(t *testing.T) { - // Test case 1: Empty slice input := []float64{} output := sdk.ConvertFloat64ToFloat32(input) @@ -55,6 +55,7 @@ func TestConvertFloat64ToFloat32(t *testing.T) { } func TestMistralEmbed(t *testing.T) { + t.Parallel() envVar := "MISTRAL_API_KEY" // Get the value of the environment variable