Skip to content

Commit 87c62eb

Browse files
author
Jan Jahoda
authored
Addition to #61371 (#61511)
1 parent 9d91089 commit 87c62eb

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/libraries/Common/tests/System/Net/Http/HttpClientHandlerTest.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -534,7 +534,7 @@ public async Task GetAsync_ServerNeedsBasicAuthAndSetDefaultCredentials_StatusCo
534534
handler.Credentials = CredentialCache.DefaultCredentials;
535535
using (HttpClient client = CreateHttpClientForRemoteServer(remoteServer, handler))
536536
{
537-
Uri uri = remoteServer.BasicAuthUriForCreds(userName: Username, password: Password);
537+
Uri uri = remoteServer.BasicAuthUriForCreds(Username, Password);
538538
using (HttpResponseMessage response = await client.GetAsync(uri))
539539
{
540540
Assert.Equal(HttpStatusCode.Unauthorized, response.StatusCode);
@@ -550,7 +550,7 @@ public async Task GetAsync_ServerNeedsAuthAndSetCredential_StatusCodeOK(Configur
550550
handler.Credentials = _credential;
551551
using (HttpClient client = CreateHttpClientForRemoteServer(remoteServer, handler))
552552
{
553-
Uri uri = remoteServer.BasicAuthUriForCreds(userName: Username, password: Password);
553+
Uri uri = remoteServer.BasicAuthUriForCreds(Username, Password);
554554
using (HttpResponseMessage response = await client.GetAsync(uri))
555555
{
556556
Assert.Equal(HttpStatusCode.OK, response.StatusCode);
@@ -564,7 +564,7 @@ public async Task GetAsync_ServerNeedsAuthAndNoCredential_StatusCodeUnauthorized
564564
{
565565
using (HttpClient client = CreateHttpClient(UseVersion.ToString()))
566566
{
567-
Uri uri = Configuration.Http.RemoteHttp11Server.BasicAuthUriForCreds(userName: Username, password: Password);
567+
Uri uri = Configuration.Http.RemoteHttp11Server.BasicAuthUriForCreds(Username, Password);
568568
using (HttpResponseMessage response = await client.GetAsync(uri))
569569
{
570570
Assert.Equal(HttpStatusCode.Unauthorized, response.StatusCode);

0 commit comments

Comments
 (0)