Skip to content

Commit

Permalink
improve unit test. adding extra timeout. (FixTcp.ServerAccept)
Browse files Browse the repository at this point in the history
  • Loading branch information
alec1o authored Dec 31, 2024
1 parent 50a731f commit 6883e63
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/tcp/FixTcp.ServerAccept.cs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ async Task Client(Host host)

client.To.Data(Guid.NewGuid().ToString());

Thread.Sleep(millisecondsTimeout: 10);
Thread.Sleep(millisecondsTimeout: 250);
{
Assert.True(client.IsOpened);
Assert.True(isModify);
Expand Down Expand Up @@ -66,7 +66,7 @@ async void Server()

await server.To.Open(host);

Thread.Sleep(millisecondsTimeout: 10);
Thread.Sleep(millisecondsTimeout: 1000);
{
Assert.True(server.IsOpened);
Assert.True(isModify);
Expand All @@ -82,9 +82,9 @@ async void Server()
await Client(server.Host);
}

Thread.Sleep(10);
Thread.Sleep(5000);

Assert.Equal(maxConnection, server.Clients.Length);
}
}
}
}

0 comments on commit 6883e63

Please sign in to comment.