From 18612f18c790916ea00001d843a9db8e37a0af9c Mon Sep 17 00:00:00 2001 From: Max Date: Tue, 20 Feb 2024 20:38:32 -0700 Subject: [PATCH] #142: update tests --- pkg/providers/ollama/client_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/providers/ollama/client_test.go b/pkg/providers/ollama/client_test.go index c295bf4a..78ced953 100644 --- a/pkg/providers/ollama/client_test.go +++ b/pkg/providers/ollama/client_test.go @@ -66,7 +66,7 @@ func TestOllamaClient_ChatRequest(t *testing.T) { // require.NoError(t, err) require.Error(t, err) - require.Contains(t, err.Error(), "provider is not available") + require.Contains(t, err.Error(), "chat request failed") } func TestOllamaClient_ChatRequest_Non200Response(t *testing.T) { @@ -94,7 +94,7 @@ func TestOllamaClient_ChatRequest_Non200Response(t *testing.T) { _, err := client.doChatRequest(context.Background(), payload) require.Error(t, err) - require.Contains(t, err.Error(), "chat request failed") + require.Contains(t, err.Error(), "provider is not available") } func TestOllamaClient_ChatRequest_SuccessfulResponse(t *testing.T) {