summaryrefslogtreecommitdiff
path: root/internal/llm/anthropic_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/llm/anthropic_test.go')
-rw-r--r--internal/llm/anthropic_test.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/internal/llm/anthropic_test.go b/internal/llm/anthropic_test.go
index ffc5021..2459064 100644
--- a/internal/llm/anthropic_test.go
+++ b/internal/llm/anthropic_test.go
@@ -79,8 +79,8 @@ func TestAnthropicChat_NoAPIKey(t *testing.T) {
if err == nil {
t.Fatalf("expected error for missing API key")
}
- if !strings.Contains(err.Error(), "missing Anthropic API key") {
- t.Fatalf("expected 'missing Anthropic API key', got '%s'", err.Error())
+ if !strings.Contains(err.Error(), "missing Anthropic API key") || !strings.Contains(err.Error(), "ANTHROPIC_API_KEY") || !strings.Contains(err.Error(), "HEXAI_ANTHROPIC_API_KEY") {
+ t.Fatalf("expected actionable Anthropic API key hint, got '%s'", err.Error())
}
}
@@ -224,8 +224,8 @@ func TestAnthropicStream_NoAPIKey(t *testing.T) {
if err == nil {
t.Fatalf("expected error for missing API key")
}
- if !strings.Contains(err.Error(), "missing Anthropic API key") {
- t.Fatalf("expected 'missing Anthropic API key', got '%s'", err.Error())
+ if !strings.Contains(err.Error(), "missing Anthropic API key") || !strings.Contains(err.Error(), "ANTHROPIC_API_KEY") || !strings.Contains(err.Error(), "HEXAI_ANTHROPIC_API_KEY") {
+ t.Fatalf("expected actionable Anthropic API key hint, got '%s'", err.Error())
}
}