From e876b49ecfa513f21c7bae906cdb592620c64c05 Mon Sep 17 00:00:00 2001 From: sakno Date: Fri, 12 Jan 2024 07:53:04 +0200 Subject: [PATCH] MTU discovery requires privileged account on Linux --- .../Net/NetworkInformation/MtuDiscoveryTests.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/DotNext.Tests/Net/NetworkInformation/MtuDiscoveryTests.cs b/src/DotNext.Tests/Net/NetworkInformation/MtuDiscoveryTests.cs index 229e5353d..b55f30bc9 100644 --- a/src/DotNext.Tests/Net/NetworkInformation/MtuDiscoveryTests.cs +++ b/src/DotNext.Tests/Net/NetworkInformation/MtuDiscoveryTests.cs @@ -7,7 +7,8 @@ public sealed class MtuDiscoveryTests : Test { private const int PingTimeout = 2000; - [Fact] + // on Linux, .NET doesn't support custom payloads for unprivileged account + [PlatformSpecificFact("windows")] public static void PingToCloudflare() { var address = IPAddress.Parse("1.1.1.1"); @@ -19,7 +20,7 @@ public static void PingToCloudflare() } } - [Fact] + [PlatformSpecificFact("windows")] public static async Task PingToOpenDNS() { var address = IPAddress.Parse("208.67.222.222");