Skip to content

Commit

Permalink
#142: update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mkrueger12 committed Feb 21, 2024
1 parent 1fe1d4c commit 18612f1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/providers/ollama/client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down Expand Up @@ -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) {
Expand Down

0 comments on commit 18612f1

Please sign in to comment.