diff --git a/src/Middleware/ResponseCaching/test/ResponseCachingMiddlewareTests.cs b/src/Middleware/ResponseCaching/test/ResponseCachingMiddlewareTests.cs index 65451ba8dbd7..fb905530f5e7 100644 --- a/src/Middleware/ResponseCaching/test/ResponseCachingMiddlewareTests.cs +++ b/src/Middleware/ResponseCaching/test/ResponseCachingMiddlewareTests.cs @@ -441,11 +441,12 @@ public void FinalizeCacheHeadersAsync_DefaultResponseValidity_Is10Seconds() } [Fact] + [QuarantinedTest("https://github.com/dotnet/aspnetcore/issues/48373")] public void FinalizeCacheHeadersAsync_ResponseValidity_UseExpiryIfAvailable() { var timeProvider = new MockTimeProvider(); var now = timeProvider.GetUtcNow(); - now = new DateTimeOffset(now.Year, now.Month, now.Day, now.Hour, now.Minute, now.Second + 1, now.Offset); // Round up to seconds. + now = new DateTimeOffset(now.Year, now.Month, now.Day, now.Hour, now.Minute, now.Second, now.Offset).AddSeconds(1); // Round up to seconds. timeProvider.AdvanceTo(now); var sink = new TestSink(); var middleware = TestUtils.CreateTestMiddleware(testSink: sink, options: new ResponseCachingOptions