From 4a8bf98458ad6d9d070b3cd0f5609514392ed08b Mon Sep 17 00:00:00 2001 From: "Alecio Furanze (Ale)" Date: Sun, 30 Jun 2024 06:55:17 +0200 Subject: [PATCH] fix. FixUdp.OpenAndClose. (macOs | Linux) --- test/udp/FixUdp.OpenAndClose.cs | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/test/udp/FixUdp.OpenAndClose.cs b/test/udp/FixUdp.OpenAndClose.cs index 71c8aa69..d57df065 100644 --- a/test/udp/FixUdp.OpenAndClose.cs +++ b/test/udp/FixUdp.OpenAndClose.cs @@ -8,7 +8,7 @@ public void OpenAndClose() Client(); Server(); - async void Client() + void Client() { var host = HostManager.GenerateLocalHost(); @@ -29,7 +29,7 @@ async void Client() Assert.False(isModify); } - await client.To.Open(host); + client.To.Open(host).Wait(); Thread.Sleep(millisecondsTimeout: 100); { @@ -40,7 +40,7 @@ async void Client() Assert.False(isError); } - await client.To.Close(); + client.To.Close().Wait(); Thread.Sleep(millisecondsTimeout: 300); { @@ -51,7 +51,7 @@ async void Client() Assert.False(isError); } - await client.To.Open(new Host(IPAddress.Any, 0)); + client.To.Open(new Host(IPAddress.Any, 0)).Wait(); { Assert.False(client.IsOpened); Assert.True(isModify); @@ -60,10 +60,10 @@ async void Client() Assert.True(isError); } - await client.To.Close(); + client.To.Close().Wait(); } - async void Server() + void Server() { var host = HostManager.GenerateLocalHost(); @@ -88,7 +88,7 @@ async void Server() Assert.False(isModify); } - await server.To.Open(host); + server.To.Open(host).Wait(); Thread.Sleep(millisecondsTimeout: 100); { @@ -99,7 +99,7 @@ async void Server() Assert.False(isError); } - await server.To.Close(); + server.To.Close().Wait(); Thread.Sleep(millisecondsTimeout: 300); { @@ -111,7 +111,7 @@ async void Server() } // Cannot assign requested address - await server.To.Open(new Host("1.1.1.1", 0)); + server.To.Open(new Host("1.1.1.1", 0)).Wait(); { Assert.False(server.IsOpened); Assert.True(isModify); @@ -120,7 +120,7 @@ async void Server() Assert.True(isError); } - await server.To.Close(); + server.To.Close().Wait(); } } } \ No newline at end of file