From 586624d8e44588370ebb7d7be8fc5793b49911d2 Mon Sep 17 00:00:00 2001 From: James Newton-King Date: Wed, 24 May 2023 02:03:07 +0800 Subject: [PATCH] Quarantine ResponseCachingMiddlewareTests.FinalizeCacheHeadersAsync_ResponseValidity_UseExpiryIfAvailable (#48374) --- .../ResponseCaching/test/ResponseCachingMiddlewareTests.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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