Skip to content

Commit

Permalink
Update FixTcp.SendAndReceive.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
alec1o authored Dec 20, 2024
1 parent 26b7b41 commit 863cde2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/tcp/FixTcp.SendAndReceive.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ public void SendAndReceive()
{
Server();

void Server()
async void Server()
{
var host = HostManager.GenerateLocalHost();

Expand Down Expand Up @@ -55,9 +55,9 @@ void Server()
Assert.False(isModify);
}

server.To.Open(host).Wait();
await server.To.Open(host);

Thread.Sleep(millisecondsTimeout: 20);
Thread.Sleep(millisecondsTimeout: 1000);
{
Assert.True(server.IsOpened);
Assert.True(isModify);
Expand Down Expand Up @@ -141,4 +141,4 @@ void Client(Host host, out Action check)
};
}
}
}
}

0 comments on commit 863cde2

Please sign in to comment.