Skip to content

Commit

Permalink
fix test case
Browse files Browse the repository at this point in the history
  • Loading branch information
terencefan committed Dec 10, 2024
1 parent 82ef907 commit 719543c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/Microsoft.Azure.SignalR.Tests/ServiceMessageTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
using Microsoft.AspNetCore.Connections;
using Microsoft.AspNetCore.SignalR;
using Microsoft.AspNetCore.SignalR.Internal;
using Microsoft.Azure.SignalR.Common;
using Microsoft.Azure.SignalR.Protocol;
using Microsoft.Azure.SignalR.Tests.Common;
using Microsoft.Extensions.DependencyInjection;
Expand Down Expand Up @@ -243,7 +244,7 @@ public async Task TestAccessKeyResponseMessage(Type keyType)
{
case MicrosoftEntraAccessKey key:
var source = new CancellationTokenSource(3000);
await Assert.ThrowsAsync<TaskCanceledException>(async () => await key.GenerateAccessTokenAsync(DefaultAudience, emptyClaims, lifetime, algorithm, source.Token));
await Assert.ThrowsAsync<AzureSignalRUnauthorizedException>(async () => await key.GenerateAccessTokenAsync(DefaultAudience, emptyClaims, lifetime, algorithm, source.Token));
break;
}

Expand Down

0 comments on commit 719543c

Please sign in to comment.