Skip to content

Commit e78d587

Browse files
committed
change test
1 parent 0f2098a commit e78d587

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

src/SignalR/server/Core/src/HubConnectionContext.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,8 @@ internal StreamTracker StreamTracker
9999
internal HubCallerContext HubCallerContext { get; }
100100

101101
internal Exception? CloseException { get; private set; }
102-
internal SemaphoreSlim ActiveInvocationLimit { get; }
102+
103+
internal SemaphoreSlim? ActiveInvocationLimit { get; }
103104

104105
/// <summary>
105106
/// Gets a <see cref="CancellationToken"/> that notifies when the connection is aborted.

src/SignalR/server/SignalR/test/HubConnectionHandlerTests.cs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2942,10 +2942,6 @@ public async Task HubMethodInvokeDoesNotCountTowardsClientTimeout()
29422942
var hubMethodTask = client.InvokeAsync(nameof(LongRunningHub.LongRunningMethod));
29432943
await tcsService.StartedMethod.Task.OrTimeout();
29442944

2945-
// Invoke another hub method (which will be blocked by the first method) in order to stop the timeout
2946-
// This is how a real-world example would behave
2947-
await client.SendInvocationAsync(nameof(LongRunningHub.LongRunningMethod)).OrTimeout();
2948-
29492945
// Tick heartbeat while hub method is running to show that close isn't triggered
29502946
client.TickHeartbeat();
29512947

0 commit comments

Comments
 (0)