Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,6 @@ public async Task StopsRevalidatingAfterDisposal()
}

[Fact]
[QuarantinedTest("https://github.com/dotnet/aspnetcore/issues/60472")]
public async Task SuppliesCancellationTokenThatSignalsWhenRevalidationLoopIsBeingDiscarded()
{
// Arrange
Expand Down Expand Up @@ -174,9 +173,11 @@ public async Task SuppliesCancellationTokenThatSignalsWhenRevalidationLoopIsBein
Assert.Equal("different user", (await provider.GetAuthenticationStateAsync()).User.Identity.Name);

// Subsequent revalidation can complete successfully
// We are checking all new logs because the revalidation loop iteration
// may happen multiple times (this made the test flaky in the past)
await provider.NextValidateAuthenticationStateAsyncCall;
Assert.Collection(provider.RevalidationCallLog.Skip(1),
call => Assert.Equal("different user", call.AuthenticationState.User.Identity.Name));
Assert.All(provider.RevalidationCallLog.Skip(1),
call => Assert.Equal("different user", call.AuthenticationState.User.Identity.Name));
}

[Fact]
Expand Down
Loading