Skip to content

Commit 47ca52b

Browse files
authored
Always use --apply-cop-headers in ThreadingAppTest (#58642)
1 parent 7232f99 commit 47ca52b

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

src/Components/test/E2ETest/Infrastructure/ServerFixtures/BlazorWasmTestAppFixture.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ public class BlazorWasmTestAppFixture<TProgram> : WebHostServerFixture
2525
public string PathBase { get; set; }
2626
public string ContentRoot { get; private set; }
2727

28+
public bool RequiresMultithreadingHeaders { get; set; }
29+
2830
protected override IHost CreateWebHost()
2931
{
3032
if (TestTrimmedOrMultithreadingApps)
@@ -61,7 +63,7 @@ protected override IHost CreateWebHost()
6163
args.Add(Environment);
6264
}
6365

64-
if (WebAssemblyTestHelper.MultithreadingIsEnabled())
66+
if (RequiresMultithreadingHeaders || WebAssemblyTestHelper.MultithreadingIsEnabled())
6567
{
6668
args.Add("--apply-cop-headers");
6769
}

src/Components/test/E2ETest/Tests/ThreadingAppTest.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ public ThreadingAppTest(
1919
ITestOutputHelper output)
2020
: base(browserFixture, serverFixture, output)
2121
{
22+
serverFixture.RequiresMultithreadingHeaders = true;
2223
}
2324

2425
protected override void InitializeAsyncCore()
@@ -28,12 +29,14 @@ protected override void InitializeAsyncCore()
2829
}
2930

3031
[Fact]
32+
[QuarantinedTest("https://github.com/dotnet/aspnetcore/issues/54761")]
3133
public void HasTitle()
3234
{
3335
Assert.Equal("Blazor standalone", Browser.Title);
3436
}
3537

3638
[Fact]
39+
[QuarantinedTest("https://github.com/dotnet/aspnetcore/issues/54761")]
3740
public void HasHeading()
3841
{
3942
Assert.Equal("Hello, world!", Browser.Exists(By.TagName("h1")).Text);
@@ -85,6 +88,7 @@ public void CounterPageCanUseThreads()
8588
}
8689

8790
[Fact]
91+
[QuarantinedTest("https://github.com/dotnet/aspnetcore/issues/54761")]
8892
public void HasFetchDataPage()
8993
{
9094
// Navigate to "Fetch data"
@@ -106,6 +110,7 @@ public void HasFetchDataPage()
106110
}
107111

108112
[Fact]
113+
[QuarantinedTest("https://github.com/dotnet/aspnetcore/issues/54761")]
109114
public void IsStarted()
110115
{
111116
// Read from property

0 commit comments

Comments
 (0)