Skip to content

Commit

Permalink
Fix for Configure_server_connection_listen_backlog test
Browse files Browse the repository at this point in the history
  • Loading branch information
pepone committed Nov 14, 2024
1 parent f89327f commit 30a54b4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/IceRpc.Tests/Transports/Tcp/TcpTransportTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,9 @@ public async Task Configure_server_connection_listen_backlog()

// Assert
Assert.That(connections, Has.Count.GreaterThanOrEqualTo(18));
Assert.That(connections, Has.Count.LessThanOrEqualTo(25));
// The OS may allow a few more connections than specified by the ListenBacklog. This test ensures that
// Socket.Listen was called with the ListenBacklog value set in TcpServerTransportOptions.
Assert.That(connections, Has.Count.LessThanOrEqualTo(30));

foreach (IDisposable connection in connections)
{
Expand Down

0 comments on commit 30a54b4

Please sign in to comment.