From 9d0ae525567c59948b0142342fecdee8a39cbe12 Mon Sep 17 00:00:00 2001 From: "Alecio Furanze (Ale)" Date: Sun, 30 Jun 2024 06:14:54 +0200 Subject: [PATCH] enable udp test on macos --- test/udp/FixUdp.Broadcast.cs | 4 +--- test/udp/FixUdp.IsMac.cs | 17 ----------------- test/udp/FixUdp.SendAndReceive.cs | 2 -- test/udp/FixUdp.ServerAccept.cs | 2 -- 4 files changed, 1 insertion(+), 24 deletions(-) delete mode 100644 test/udp/FixUdp.IsMac.cs diff --git a/test/udp/FixUdp.Broadcast.cs b/test/udp/FixUdp.Broadcast.cs index 5b6257d9..88f38327 100644 --- a/test/udp/FixUdp.Broadcast.cs +++ b/test/udp/FixUdp.Broadcast.cs @@ -2,9 +2,7 @@ public partial class FixUdp { [Fact] public async Task Broadcast() - { - if(IsMac()) return; - + { await Server(); async Task Server() diff --git a/test/udp/FixUdp.IsMac.cs b/test/udp/FixUdp.IsMac.cs deleted file mode 100644 index cc635605..00000000 --- a/test/udp/FixUdp.IsMac.cs +++ /dev/null @@ -1,17 +0,0 @@ -public partial class FixUdp -{ - // Skip macOS Test: Firewall isn't allowing UDP connection. - public bool IsMac() - { - var value = OperatingSystem.IsMacOS(); - - if (value) - { - // https://github.com/dotnet/runtime/issues/97718 - // https://support.apple.com/guide/mac-help/change-firewall-settings-on-mac-mh11783/mac - output.WriteLine("macOS is skipped because firewall problem"); - } - - return value; - } -} \ No newline at end of file diff --git a/test/udp/FixUdp.SendAndReceive.cs b/test/udp/FixUdp.SendAndReceive.cs index 489a3390..55f3e3c9 100644 --- a/test/udp/FixUdp.SendAndReceive.cs +++ b/test/udp/FixUdp.SendAndReceive.cs @@ -3,8 +3,6 @@ public partial class FixUdp [Fact] public async Task SendAndReceive() { - if (IsMac()) return; - await Server(); async Task Server() diff --git a/test/udp/FixUdp.ServerAccept.cs b/test/udp/FixUdp.ServerAccept.cs index 4b3a514e..46640235 100644 --- a/test/udp/FixUdp.ServerAccept.cs +++ b/test/udp/FixUdp.ServerAccept.cs @@ -5,8 +5,6 @@ public partial class FixUdp [Fact] public void ServerAccept() { - if (IsMac()) return; - Server(); async Task Client(Host host)