File tree 4 files changed +6
-1
lines changed
System.Runtime/tests/System.IO.Tests
4 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -158,7 +158,9 @@ public static async Task OutWriteAndWriteLineOverloads()
158
158
Console . SetOut ( sw ) ;
159
159
TextWriter writer = Console . Out ;
160
160
Assert . NotNull ( writer ) ;
161
- Assert . NotEqual ( writer , sw ) ; // the writer we provide gets wrapped
161
+ // Browser bypasses SyncTextWriter for faster startup
162
+ if ( ! OperatingSystem . IsBrowser ( ) )
163
+ Assert . NotEqual ( writer , sw ) ; // the writer we provide gets wrapped
162
164
163
165
// We just want to ensure none of these throw exceptions, we don't actually validate
164
166
// what was written.
Original file line number Diff line number Diff line change @@ -30,6 +30,7 @@ public void ObjectClosedReadLineBaseStream()
30
30
}
31
31
32
32
[ Fact ]
33
+ [ SkipOnPlatform ( TestPlatforms . Browser , "Browser bypasses SyncTextWriter for faster startup" ) ]
33
34
public void Synchronized_NewObject ( )
34
35
{
35
36
using ( Stream str = GetLargeStream ( ) )
Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ namespace System.IO.Tests
8
8
public partial class WriteTests
9
9
{
10
10
[ Fact ]
11
+ [ SkipOnPlatform ( TestPlatforms . Browser , "Browser bypasses SyncTextWriter for faster startup" ) ]
11
12
public void Synchronized_NewObject ( )
12
13
{
13
14
using ( Stream str = CreateStream ( ) )
Original file line number Diff line number Diff line change @@ -691,6 +691,7 @@ public void DisposeAsync_ExceptionReturnedInTask()
691
691
}
692
692
693
693
[ Fact ]
694
+ [ SkipOnPlatform ( TestPlatforms . Browser , "Browser bypasses SyncTextWriter for faster startup" ) ]
694
695
public async Task FlushAsync_Precanceled ( )
695
696
{
696
697
Assert . Equal ( TaskStatus . RanToCompletion , TextWriter . Null . FlushAsync ( new CancellationToken ( true ) ) . Status ) ;
You can’t perform that action at this time.
0 commit comments