Skip to content

Commit c5fc9fa

Browse files
authored
Remove ServerComponentRenderingTest.CanDispatchAsyncWorkToSyncContext (#33267)
This scenario is covered by RendererSynchronizationContextTest.InvokeAsync_SyncWorkInAsyncTaskIsCompletedFirst which is unquarantined and reliable. Fixes #19413
1 parent 8bfc2e6 commit c5fc9fa

File tree

3 files changed

+723
-707
lines changed

3 files changed

+723
-707
lines changed

src/Components/test/E2ETest/ServerExecutionTests/ServerComponentRenderingTest.cs

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
using Microsoft.AspNetCore.Components.E2ETest.Infrastructure.ServerFixtures;
77
using Microsoft.AspNetCore.Components.E2ETest.Tests;
88
using Microsoft.AspNetCore.E2ETesting;
9-
using Microsoft.AspNetCore.Testing;
109
using OpenQA.Selenium;
1110
using Xunit;
1211
using Xunit.Abstractions;
@@ -16,7 +15,7 @@ namespace Microsoft.AspNetCore.Components.E2ETest.ServerExecutionTests
1615
// By inheriting from ComponentRenderingTest, this test class also copies
1716
// all the test cases shared with client-side rendering
1817

19-
public class ServerComponentRenderingTest : ComponentRenderingTest
18+
public class ServerComponentRenderingTest : ComponentRenderingTestBase
2019
{
2120
public ServerComponentRenderingTest(BrowserFixture browserFixture, ToggleExecutionModeServerFixture<Program> serverFixture, ITestOutputHelper output)
2221
: base(browserFixture, serverFixture.WithServerExecution(), output)
@@ -35,10 +34,5 @@ public void ThrowsIfRenderIsRequestedOutsideSyncContext()
3534
$"{typeof(InvalidOperationException).FullName}: The current thread is not associated with the Dispatcher. Use InvokeAsync() to switch execution to the Dispatcher when triggering rendering or component state.",
3635
() => result.Text);
3736
}
38-
39-
[Fact]
40-
[QuarantinedTest("https://github.com/dotnet/aspnetcore/issues/19413")]
41-
public override void CanDispatchAsyncWorkToSyncContext()
42-
=> base.CanDispatchAsyncWorkToSyncContext();
4337
}
4438
}

0 commit comments

Comments
 (0)