-
Notifications
You must be signed in to change notification settings - Fork 10.5k
Quarantine ProcessBufferedRenderBatches_WritesRenders #63643
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||
---|---|---|---|---|
|
@@ -9,6 +9,7 @@ | |||
using Microsoft.AspNetCore.Components.Server; | ||||
using Microsoft.AspNetCore.Components.Server.Circuits; | ||||
using Microsoft.AspNetCore.DataProtection; | ||||
using Microsoft.AspNetCore.InternalTesting; | ||||
using Microsoft.AspNetCore.SignalR; | ||||
using Microsoft.Extensions.DependencyInjection; | ||||
using Microsoft.Extensions.Logging; | ||||
|
@@ -126,6 +127,7 @@ public async Task ProducesNewBatch_WhenABatchGetsAcknowledged() | |||
} | ||||
|
||||
[Fact] | ||||
[QuarantinedTest("https://github.com/dotnet/aspnetcore/issues/61807")] | ||||
public async Task ProcessBufferedRenderBatches_WritesRenders() | ||||
{ | ||||
// Arrange | ||||
|
@@ -767,6 +769,17 @@ public Task SetParametersAsync(ParameterView parameters) | |||
public void TriggerRender() | ||||
{ | ||||
var task = _renderHandle.Dispatcher.InvokeAsync(() => _renderHandle.Render(_renderFragment)); | ||||
|
||||
// TODO: Remove the following block once ProcessBufferedRenderBatches_WritesRenders is fixed. | ||||
if (!task.IsCompletedSuccessfully) | ||||
{ | ||||
// Log the task state for debugging purposes. | ||||
var status = task.Status; | ||||
var innerException = task.Exception?.InnerException; | ||||
var message = $"Render task should succeed synchronously.\nStatus: '{status}'\nInner exception: '{innerException}'"; | ||||
Assert.True(task.IsCompletedSuccessfully, message); | ||||
} | ||||
|
||||
|
||||
Assert.True(task.IsCompletedSuccessfully); | ||||
|
Assert.True(task.IsCompletedSuccessfully); |
Copilot uses AI. Check for mistakes.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why? Can't we keep this message for all the tests in case of failure?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess we could. I didn't want to add anything into the "standard code path". But since its just test code, why not.