using System.Reflection;
using Xunit;
using Xunit.Sdk;
+using Microsoft.DotNet.XUnitExtensions.Attributes;
namespace System.ComponentModel.Composition.Registration.Tests
{
[SkipOnCoreClr("Test failures on stress tests")]
+ [SkipOnMono("Test failures on stress tests")]
public class RegistrationBuilderAttributedOverrideUnitTests
{
public interface IContractA { }
// See the LICENSE file in the project root for more information.
using Xunit;
+using Microsoft.DotNet.XUnitExtensions.Attributes;
[assembly: SkipOnCoreClr("Timeout in stress tests on Linux/arm32", TestPlatforms.Linux)]
+[assembly: SkipOnMono("Timeout in stress tests on Linux/arm32", TestPlatforms.Linux)]
// See the LICENSE file in the project root for more information.
using Xunit;
+using Microsoft.DotNet.XUnitExtensions.Attributes;
[assembly: SkipOnCoreClr("System.Net.Tests are flaky and/or long running: https://github.com/dotnet/runtime/issues/131")]
+[assembly: SkipOnMono("System.Net.Tests are flaky and/or long running: https://github.com/dotnet/runtime/issues/131")]
using System.Threading;
using System.Threading.Tasks;
using Xunit;
+using Microsoft.DotNet.XUnitExtensions.Attributes;
namespace System.Net.Tests
{
- [SkipOnCoreClr("System.Net.Tests are inestable")]
+ [SkipOnCoreClr("System.Net.Tests are flaky")]
+ [SkipOnMono("System.Net.Tests are flaky")]
[ConditionalClass(typeof(PlatformDetection), nameof(PlatformDetection.IsNotWindowsNanoServer))] // httpsys component missing in Nano.
public class HttpListenerAuthenticationTests : IDisposable
{
using System.Threading;
using System.Threading.Tasks;
using Xunit;
+using Microsoft.DotNet.XUnitExtensions.Attributes;
namespace System.Net.Tests
{
- [SkipOnCoreClr("System.Net.Tests are inestable")]
+ [SkipOnCoreClr("System.Net.Tests are flaky")]
+ [SkipOnMono("System.Net.Tests are flaky")]
[ConditionalClass(typeof(PlatformDetection), nameof(PlatformDetection.IsNotWindowsNanoServer))] // httpsys component missing in Nano.
public class HttpListenerContextTests : IDisposable
{
using System.Linq;
using System.Threading.Tasks;
using Xunit;
+using Microsoft.DotNet.XUnitExtensions.Attributes;
namespace System.Net.Tests
{
- [SkipOnCoreClr("System.Net.Tests are inestable")]
+ [SkipOnCoreClr("System.Net.Tests are flaky")]
+ [SkipOnMono("System.Net.Tests are flaky")]
[ConditionalClass(typeof(PlatformDetection), nameof(PlatformDetection.IsNotWindowsNanoServer))] // httpsys component missing in Nano.
public class HttpListenerResponseCookiesTests : HttpListenerResponseTestBase
{
using System.Text;
using System.Threading.Tasks;
using Xunit;
+using Microsoft.DotNet.XUnitExtensions.Attributes;
namespace System.Net.Tests
{
}
}
- [SkipOnCoreClr("System.Net.Tests are inestable")]
+ [SkipOnCoreClr("System.Net.Tests are flaky")]
+ [SkipOnMono("System.Net.Tests are flaky")]
[ConditionalClass(typeof(PlatformDetection), nameof(PlatformDetection.IsNotWindowsNanoServer))] // httpsys component missing in Nano.
public class HttpListenerResponseTests : HttpListenerResponseTestBase
{
[InlineData(" \r \t \n", 123)]
[InlineData("http://microsoft.com", 155)]
[InlineData(" http://microsoft.com ", 155)]
- [SkipOnCoreClr("System.Net.Tests are inestable")]
+ [SkipOnCoreClr("System.Net.Tests are flaky")]
+ [SkipOnMono("System.Net.Tests are flaky")]
public async Task Redirect_Invoke_SetsRedirectionProperties(string url, int expectedNumberOfBytes)
{
string expectedUrl = url?.Trim() ?? "";
using System.Threading.Tasks;
using Systen.Net.Mail.Tests;
using Xunit;
+using Microsoft.DotNet.XUnitExtensions.Attributes;
namespace System.Net.Mail.Tests
{
[InlineData("")]
[InlineData(null)]
[SkipOnCoreClr("System.Net.Tests are flaky and/or long running: https://github.com/dotnet/runtime/issues/131")]
+ [SkipOnMono("System.Net.Tests are flaky and/or long running: https://github.com/dotnet/runtime/issues/131")]
public async Task TestMailDeliveryAsync(string body)
{
using var server = new LoopbackSmtpServer();
[Fact]
[PlatformSpecific(TestPlatforms.Windows)] // NTLM support required, see https://github.com/dotnet/corefx/issues/28961
[SkipOnCoreClr("System.Net.Tests are flaky and/or long running: https://github.com/dotnet/runtime/issues/131")]
+ [SkipOnMono("System.Net.Tests are flaky and/or long running: https://github.com/dotnet/runtime/issues/131")]
public async Task TestCredentialsCopyInAsyncContext()
{
using var server = new LoopbackSmtpServer();
using System.Diagnostics.Tracing;
using Xunit;
+using Microsoft.DotNet.XUnitExtensions.Attributes;
namespace System.Net.Tests
{
{
[Fact]
[SkipOnTargetFramework(TargetFrameworkMonikers.Mono, "NetEventSource is only part of .NET Core.")]
- [SkipOnCoreClr("System.Net.Tests are inestable")]
+ [SkipOnCoreClr("System.Net.Tests are flaky")]
+ [SkipOnMono("System.Net.Tests are flaky")]
public void EventSource_ExistsWithCorrectId()
{
Type esType = typeof(WebRequest).Assembly.GetType("System.Net.NetEventSource", throwOnError: true, ignoreCase: false);
using System.Threading;
using System.Threading.Tasks;
using Xunit;
+using Microsoft.DotNet.XUnitExtensions.Attributes;
namespace System.Net.Security.Tests
{
[Fact]
[SkipOnCoreClr("System.Net.Tests are flaky and/or long running: https://github.com/dotnet/runtime/issues/131")]
+ [SkipOnMono("System.Net.Tests are flaky and/or long running: https://github.com/dotnet/runtime/issues/131")]
public async Task SslStream_NoSniFromClient_CallbackReturnsNull()
{
await WithVirtualConnection(async (server, client) =>
// See the LICENSE file in the project root for more information.
using Xunit;
+using Microsoft.DotNet.XUnitExtensions.Attributes;
[assembly: SkipOnCoreClr("System.Net.Tests are flaky and/or long running: https://github.com/dotnet/runtime/issues/131")]
+[assembly: SkipOnMono("System.Net.Tests are flaky and/or long running: https://github.com/dotnet/runtime/issues/131")]