Skip to content

Commit 5e8131b

Browse files
committed
Merged PR 20577: Fix build errors
https://dev.azure.com/dnceng/internal/_git/dotnet-aspnetcore/pullrequest/20330 added some tests that didn't compile in 6.0
1 parent 04a113d commit 5e8131b

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/Servers/Kestrel/test/InMemory.FunctionalTests/Http2/Http2ConnectionTests.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ await ExpectAsync(Http2FrameType.HEADERS,
245245
withStreamId: 1);
246246

247247
// TriggerTick will trigger the stream to be returned to the pool so we can assert it
248-
TriggerTick();
248+
TriggerTick(_serviceContext.MockSystemClock.UtcNow);
249249

250250
// Stream has been returned to the pool
251251
Assert.Equal(1, _connection.StreamPool.Count);
@@ -263,7 +263,7 @@ await ExpectAsync(Http2FrameType.HEADERS,
263263
withStreamId: 3);
264264

265265
// TriggerTick will trigger the stream to be returned to the pool so we can assert it
266-
TriggerTick();
266+
TriggerTick(_serviceContext.MockSystemClock.UtcNow);
267267

268268
// Stream has been returned to the pool
269269
Assert.Equal(1, _connection.StreamPool.Count);

src/Servers/Kestrel/test/InMemory.FunctionalTests/Http3/Http3ConnectionTests.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
using Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http3;
1818
using Microsoft.AspNetCore.Testing;
1919
using Microsoft.Extensions.Logging;
20+
using Microsoft.Extensions.Primitives;
2021
using Microsoft.Net.Http.Headers;
2122
using Xunit;
2223
using Http3SettingType = Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http3.Http3SettingType;

0 commit comments

Comments
 (0)