Skip to content

Commit

Permalink
test: Try to fix PR tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
HavenDV committed Nov 22, 2024
1 parent d317d71 commit edc9414
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/tests/Anthropic.IntegrationTests/Tests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ private static AnthropicClient GetAuthenticatedClient()
Environment.GetEnvironmentVariable("API_KEY") ??
Environment.GetEnvironmentVariable("ANTHROPIC_API_KEY") ??
throw new AssertInconclusiveException("ANTHROPIC_API_KEY environment variable is not found.");
if (string.IsNullOrWhiteSpace(apiKey))
{
throw new AssertInconclusiveException("ANTHROPIC_API_KEY environment variable is empty.");
}

return new AnthropicClient(apiKey);
}
Expand Down

0 comments on commit edc9414

Please sign in to comment.