Skip to content

Commit

Permalink
Fix for Configure_server_connection_listen_backlog test (#4100)
Browse files Browse the repository at this point in the history
  • Loading branch information
pepone authored Nov 14, 2024
1 parent f89327f commit afc3e10
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(50));

foreach (IDisposable connection in connections)
{
Expand Down

0 comments on commit afc3e10

Please sign in to comment.