Skip to content

Commit

Permalink
Fixed SocketUtilsTests.TestTimeoutAsync()
Browse files Browse the repository at this point in the history
  • Loading branch information
jstedfast committed Aug 1, 2024
1 parent c8545e8 commit e1fd80c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion UnitTests/Net/SocketUtilsTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ public async Task TestConnectTimeoutAsync ()

var elapsed = stopwatch.Elapsed.TotalSeconds;

if (elapsed < 10 || elapsed > 12)
if (elapsed < 9.5 || elapsed > 12)
Assert.Fail ($"Expected timeout to be around 10 seconds, but was {elapsed} seconds.");
else
Assert.Pass ("ConnectAsync timed out as expected.");
Expand Down

0 comments on commit e1fd80c

Please sign in to comment.