Skip to content

Commit 36f9ad2

Browse files
committed
update
1 parent b3ec2d0 commit 36f9ad2

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

src/Microsoft.Azure.SignalR.Common/Endpoints/AadAccessKey.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -146,9 +146,7 @@ private async Task AuthorizeWithTokenAsync(string accessToken, CancellationToken
146146
cancellationToken: token);
147147
}
148148

149-
private async Task<bool> HandleHttpResponseAsync(HttpResponseMessage response) => await HandleHttpResponseAsyncCore(response);
150-
151-
private async Task<bool> HandleHttpResponseAsyncCore(HttpResponseMessage response)
149+
private async Task<bool> HandleHttpResponseAsync(HttpResponseMessage response)
152150
{
153151
if (response.StatusCode != HttpStatusCode.OK)
154152
{

test/Microsoft.Azure.SignalR.Tests/ServiceMessageTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ public async Task TestAccessKeyResponseMessageWithError(int minutesElapsed, int
230230
Assert.Equal(expectedLogCount, logs.Count);
231231
if (logs.Count > 0)
232232
{
233-
logs[0].ToString().StartsWith("Service returned 401 unauthorized.");
233+
Assert.StartsWith("Service returned 401 unauthorized:", logs[0].Write.Message);
234234
}
235235
return true;
236236
}))

0 commit comments

Comments
 (0)