Skip to content

Commit 69daaf6

Browse files
committed
Reworded registration exception for clarity
Ported dotnet/aspnetcore#12636
1 parent d38d0a4 commit 69daaf6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/HeaderPropagationIntegrationTest.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,8 @@ public async Task HeaderPropagation_WithoutMiddleware_Throws()
4141
{
4242
try
4343
{
44-
var c = context.RequestServices.GetRequiredService<IHttpClientFactory>().CreateClient("test");
45-
await c.GetAsync("http://localhost/"); // will throw
44+
var client = context.RequestServices.GetRequiredService<IHttpClientFactory>().CreateClient("test");
45+
await client.GetAsync("http://localhost/"); // will throw
4646
}
4747
catch (Exception ex)
4848
{

0 commit comments

Comments
 (0)