Skip to content

Commit

Permalink
Quarantine ResponseCachingMiddlewareTests.FinalizeCacheHeadersAsync_R…
Browse files Browse the repository at this point in the history
…esponseValidity_UseExpiryIfAvailable (dotnet#48374)
  • Loading branch information
JamesNK authored May 23, 2023
1 parent ba7cf14 commit 586624d
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 586624d

Please sign in to comment.