Skip to content
This repository has been archived by the owner on Jun 30, 2023. It is now read-only.

Commit

Permalink
comments
Browse files Browse the repository at this point in the history
  • Loading branch information
bgavrilMS committed Jun 7, 2019
1 parent e094e96 commit c27dd37
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -101,8 +101,10 @@ public async Task<IHttpWebResponse> SendPostForceResponseAsync(

private HttpRequestMessage CreateRequestMessage(Uri endpoint, IDictionary<string, string> headers)
{
HttpRequestMessage requestMessage = new HttpRequestMessage {
RequestUri = endpoint };
HttpRequestMessage requestMessage = new HttpRequestMessage
{
RequestUri = endpoint
};
requestMessage.Headers.Accept.Clear();
if (headers != null)
{
Expand Down
3 changes: 1 addition & 2 deletions tests/Test.ADAL.NET.Unit.net45/RegressionTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -82,14 +82,13 @@ await context.AcquireTokenForClientCommonAsync(
}
catch (AdalException ex)
{
// Instance Discovery will wrap service exceptions, so the task cancelled is burried 2 times deep
Assert.AreEqual(AdalError.AuthorityValidationFailed, ex.ErrorCode);
AdalServiceException inner = ex.InnerException as AdalServiceException;
Assert.AreEqual((int)HttpStatusCode.GatewayTimeout, inner.StatusCode);
return;
}

Assert.Fail("Expecting a timeout ADAL Service Exception to have been thrown");
Assert.Fail("Expecting a timeout ADAL Exception to have been thrown");
}
}

Expand Down

0 comments on commit c27dd37

Please sign in to comment.