Skip to content

Commit 12f41dd

Browse files
pavelsavarapull[bot]
authored andcommitted
[browser][MT] longer timeouts for FS in MT, one test at the time (#106078)
1 parent 723ee5d commit 12f41dd

5 files changed

Lines changed: 18 additions & 0 deletions

File tree

src/libraries/Microsoft.VisualBasic.Core/tests/Microsoft.VisualBasic.Core.Tests.csproj

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,12 @@
33
<IncludeRemoteExecutor>true</IncludeRemoteExecutor>
44
<TargetFrameworks>$(NetCoreAppCurrent);$(NetFrameworkCurrent)</TargetFrameworks>
55
</PropertyGroup>
6+
<PropertyGroup Condition="'$(TargetOS)' == 'browser' and '$(WasmEnableThreads)' == 'true'">
7+
<WasmXHarnessMaxParallelThreads>1</WasmXHarnessMaxParallelThreads>
8+
<XunitShowProgress>true</XunitShowProgress>
9+
<!-- VSF is emulated on the UI thread and all calls are slow because they are marshaled -->
10+
<WasmXHarnessTestsTimeout>01:15:00</WasmXHarnessTestsTimeout>
11+
</PropertyGroup>
612
<ItemGroup>
713
<Compile Include="$(CoreLibSharedDir)System\Runtime\CompilerServices\IsExternalInit.cs" Link="Common\System\Runtime\CompilerServices\IsExternalInit.cs" />
814
<Compile Include="AssemblyAttributes.cs" />

src/libraries/System.Private.Xml/tests/System.Private.Xml.Tests.csproj

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@
1717
</PropertyGroup>
1818

1919
<PropertyGroup Condition="'$(TargetOS)' == 'browser' and '$(WasmEnableThreads)' == 'true'">
20+
<WasmXHarnessMaxParallelThreads>1</WasmXHarnessMaxParallelThreads>
21+
<XunitShowProgress>true</XunitShowProgress>
2022
<!-- VSF is emulated on the UI thread and all calls are slow because they are marshaled -->
2123
<WasmXHarnessTestsTimeout>01:15:00</WasmXHarnessTestsTimeout>
2224
</PropertyGroup>

src/libraries/System.Runtime/tests/System.IO.FileSystem.Tests/System.IO.FileSystem.Tests.csproj

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77
<WasmXHarnessMonoArgs>--working-dir=/test-dir</WasmXHarnessMonoArgs>
88
</PropertyGroup>
99
<PropertyGroup Condition="'$(TargetOS)' == 'browser' and '$(WasmEnableThreads)' == 'true'">
10+
<WasmXHarnessMaxParallelThreads>1</WasmXHarnessMaxParallelThreads>
11+
<XunitShowProgress>true</XunitShowProgress>
1012
<!-- VSF is emulated on the UI thread and all calls are slow because they are marshaled -->
1113
<WasmXHarnessTestsTimeout>01:15:00</WasmXHarnessTestsTimeout>
1214
</PropertyGroup>

src/libraries/System.Runtime/tests/System.IO.Tests/System.IO.Tests.csproj

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,12 @@
66
<IncludeRemoteExecutor>true</IncludeRemoteExecutor>
77
<TargetFramework>$(NetCoreAppCurrent)</TargetFramework>
88
</PropertyGroup>
9+
<PropertyGroup Condition="'$(TargetOS)' == 'browser' and '$(WasmEnableThreads)' == 'true'">
10+
<WasmXHarnessMaxParallelThreads>1</WasmXHarnessMaxParallelThreads>
11+
<XunitShowProgress>true</XunitShowProgress>
12+
<!-- VSF is emulated on the UI thread and all calls are slow because they are marshaled -->
13+
<WasmXHarnessTestsTimeout>01:15:00</WasmXHarnessTestsTimeout>
14+
</PropertyGroup>
915
<ItemGroup>
1016
<Compile Include="IndentedTextWriter.cs" />
1117
<Compile Include="BinaryReader\BinaryReaderTests.cs" />

src/libraries/sendtohelix-browser.targets

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -247,6 +247,8 @@
247247
<!-- VSF is emulated on the UI thread and all calls are slow because they are marshaled -->
248248
<Timeout Condition="'%(FileName)' == 'System.IO.FileSystem.Tests' and '$(WasmEnableThreads)' == 'true'">01:20:00</Timeout>
249249
<Timeout Condition="'%(FileName)' == 'System.Private.Xml.Tests' and '$(WasmEnableThreads)' == 'true'">01:20:00</Timeout>
250+
<Timeout Condition="'%(FileName)' == 'Microsoft.VisualBasic.Core.Tests' and '$(WasmEnableThreads)' == 'true'">01:20:00</Timeout>
251+
<Timeout Condition="'%(FileName)' == 'System.IO.Tests' and '$(WasmEnableThreads)' == 'true'">01:20:00</Timeout>
250252
</HelixWorkItem>
251253
</ItemGroup>
252254

0 commit comments

Comments
 (0)