diff --git a/src/libraries/Common/tests/System/IO/Compression/CompressionStreamUnitTestBase.cs b/src/libraries/Common/tests/System/IO/Compression/CompressionStreamUnitTestBase.cs index e8aeadb85765a7..90a6c35c0f2ad9 100644 --- a/src/libraries/Common/tests/System/IO/Compression/CompressionStreamUnitTestBase.cs +++ b/src/libraries/Common/tests/System/IO/Compression/CompressionStreamUnitTestBase.cs @@ -14,7 +14,7 @@ public abstract class CompressionStreamUnitTestBase : CompressionStreamTestBase { private const int TaskTimeout = 30 * 1000; // Generous timeout for official test runs - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] public virtual void FlushAsync_DuringWriteAsync() { if (FlushNoOps) @@ -49,7 +49,7 @@ public virtual void FlushAsync_DuringWriteAsync() } } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] public async Task FlushAsync_DuringReadAsync() { if (FlushNoOps) @@ -78,7 +78,7 @@ public async Task FlushAsync_DuringReadAsync() } } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] public async Task FlushAsync_DuringFlushAsync() { if (FlushNoOps) @@ -121,7 +121,7 @@ public async Task FlushAsync_DuringFlushAsync() } } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] public virtual void WriteAsync_DuringWriteAsync() { byte[] buffer = new byte[100000]; @@ -154,7 +154,7 @@ public virtual void WriteAsync_DuringWriteAsync() } } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] public async Task ReadAsync_DuringReadAsync() { byte[] buffer = new byte[32]; @@ -179,7 +179,7 @@ public async Task ReadAsync_DuringReadAsync() } } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))] public virtual async Task Dispose_WithUnfinishedReadAsync() { string compressedPath = CompressedTestFile(UncompressedTestFile()); diff --git a/src/libraries/tests.proj b/src/libraries/tests.proj index ec074e10721d43..96eb0aed551ca1 100644 --- a/src/libraries/tests.proj +++ b/src/libraries/tests.proj @@ -37,7 +37,6 @@ -