Skip to content

Commit cc43559

Browse files
authored
slow FS in MT (#105258)
1 parent 75a48e9 commit cc43559

File tree

3 files changed

+15
-0
lines changed

3 files changed

+15
-0
lines changed

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,11 @@
1616
<DefineConstants>$(DefineConstants);TARGET_BROWSER</DefineConstants>
1717
</PropertyGroup>
1818

19+
<PropertyGroup Condition="'$(TargetOS)' == 'browser' and '$(WasmEnableThreads)' == 'true'">
20+
<!-- VSF is emulated on the UI thread and all calls are slow because they are marshaled -->
21+
<WasmXHarnessTestsTimeout>01:15:00</WasmXHarnessTestsTimeout>
22+
</PropertyGroup>
23+
1924
<ItemGroup>
2025
<Compile Include="AllowDefaultResolverContext.cs" />
2126
<Compile Include="ExceptionVerifier.cs" />

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@
66

77
<WasmXHarnessMonoArgs>--working-dir=/test-dir</WasmXHarnessMonoArgs>
88
</PropertyGroup>
9+
<PropertyGroup Condition="'$(TargetOS)' == 'browser' and '$(WasmEnableThreads)' == 'true'">
10+
<!-- VSF is emulated on the UI thread and all calls are slow because they are marshaled -->
11+
<WasmXHarnessTestsTimeout>01:15:00</WasmXHarnessTestsTimeout>
12+
</PropertyGroup>
913
<ItemGroup Condition="'$(TargetOS)' == 'browser'">
1014
<WasmFilesToIncludeFromPublishDir Include="$(AssemblyName).dll" TargetDir="test-dir" />
1115
</ItemGroup>

src/libraries/sendtohelix-browser.targets

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -243,6 +243,9 @@
243243
<Command>$(HelixCommand)</Command>
244244
<Timeout>$(_workItemTimeout)</Timeout>
245245
<Timeout Condition="'$(Scenario)' == 'WasmTestOnNodeJS' and '%(FileName)' == 'System.Net.Http.Functional.Tests'">01:20:00</Timeout>
246+
<!-- VSF is emulated on the UI thread and all calls are slow because they are marshaled -->
247+
<Timeout Condition="'%(FileName)' == 'System.IO.FileSystem.Tests' and '$(WasmEnableThreads)' == 'true'">01:20:00</Timeout>
248+
<Timeout Condition="'%(FileName)' == 'System.Private.Xml.Tests' and '$(WasmEnableThreads)' == 'true'">01:20:00</Timeout>
246249
</HelixWorkItem>
247250
</ItemGroup>
248251

@@ -268,6 +271,9 @@
268271
<PayloadArchive>%(Identity)</PayloadArchive>
269272
<Command>$(HelixCommand)</Command>
270273
<Timeout>$(_workItemTimeout)</Timeout>
274+
<!-- VSF is emulated on the UI thread and all calls are slow because they are marshaled -->
275+
<Timeout Condition="'%(FileName)' == 'System.IO.FileSystem.Tests' and '$(WasmEnableThreads)' == 'true'">01:20:00</Timeout>
276+
<Timeout Condition="'%(FileName)' == 'System.Private.Xml.Tests' and '$(WasmEnableThreads)' == 'true'">01:20:00</Timeout>
271277
</HelixWorkItem>
272278

273279
</ItemGroup>

0 commit comments

Comments
 (0)