Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
Related to: aliencube#300
  • Loading branch information
sikutisa committed Sep 7, 2024
1 parent f57decc commit ceaa16b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ public void Given_NullOrEmpty_SecretName_When_Invoked_AddKeyVaultService_Then_It
var dict = new Dictionary<string, string>()
{
{ "Azure:KeyVault:VaultUri", vaultUri },
{ "Azure:KeyVault:SecretNames:OpenAI", secretName! },
{ "Azure:KeyVault:SecretNames:OpenAI", secretName },

Check warning on line 120 in test/AzureOpenAIProxy.ApiApp.Tests/Extensions/ServiceCollectionExtensionsTests.cs

View workflow job for this annotation

GitHub Actions / build-test

Possible null reference argument for parameter 'value' in 'void Dictionary<string, string>.Add(string key, string value)'.

Check warning on line 120 in test/AzureOpenAIProxy.ApiApp.Tests/Extensions/ServiceCollectionExtensionsTests.cs

View workflow job for this annotation

GitHub Actions / build-test

Possible null reference argument for parameter 'value' in 'void Dictionary<string, string>.Add(string key, string value)'.
};
#pragma warning disable CS8620 // Argument cannot be used for parameter due to differences in the nullability of reference types.
var config = new ConfigurationBuilder().AddInMemoryCollection(dict).Build();
Expand Down

0 comments on commit ceaa16b

Please sign in to comment.