Skip to content

Commit 14207cb

Browse files
committed
Adjust time tolerance in TransportConfigurationTests
Increased the time tolerance for the 'LastUpdate' field comparison from 100 milliseconds to 2 seconds. This change enhances the reliability of the test by accommodating larger variations in timing.
1 parent a00c899 commit 14207cb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/Elastic.Transport.Tests/Configuration/TransportConfigurationTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public void SameDefaults()
3737

3838
config.BootstrapLock.CurrentCount.Should().Be(newConfig.BootstrapLock.CurrentCount);
3939
config.NodePool.LastUpdate
40-
.Should().BeCloseTo(newConfig.NodePool.LastUpdate, TimeSpan.FromMilliseconds(100));
40+
.Should().BeCloseTo(newConfig.NodePool.LastUpdate, TimeSpan.FromSeconds(2));
4141
}
4242

4343
#if !NETFRAMEWORK

0 commit comments

Comments
 (0)