Skip to content

Commit aa524a2

Browse files
committed
Always use --apply-cop-headers in ThreadingAppTest
1 parent 397ef0a commit aa524a2

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-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: 1 addition & 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()

0 commit comments

Comments
 (0)