diff --git a/src/IO.Ably.Tests.Shared/Realtime/ConnectionSpecs/ConnectionFailureSpecs.cs b/src/IO.Ably.Tests.Shared/Realtime/ConnectionSpecs/ConnectionFailureSpecs.cs index 417f0a58f..32794695d 100644 --- a/src/IO.Ably.Tests.Shared/Realtime/ConnectionSpecs/ConnectionFailureSpecs.cs +++ b/src/IO.Ably.Tests.Shared/Realtime/ConnectionSpecs/ConnectionFailureSpecs.cs @@ -302,12 +302,12 @@ public async Task WhenInDisconnectedState_ReconnectUsingIncrementalBackoffTimeou // Upper bound = min((retryAttempt + 2) / 3, 2) * initialTimeout // Lower bound = 0.8 * Upper bound - disconnectedRetryTimeouts[0].Should().BeInRange(4, 5); - disconnectedRetryTimeouts[1].Should().BeInRange(5.33, 6.66); - disconnectedRetryTimeouts[2].Should().BeInRange(6.66, 8.33); + disconnectedRetryTimeouts[0].Should().BeInRange(4, 5 + 0.20); + disconnectedRetryTimeouts[1].Should().BeInRange(5.33, 6.66 + 0.20); + disconnectedRetryTimeouts[2].Should().BeInRange(6.66, 8.33 + 0.20); for (var i = 3; i < disconnectedRetryTimeouts.Count; i++) { - disconnectedRetryTimeouts[i].Should().BeInRange(8, 10); + disconnectedRetryTimeouts[i].Should().BeInRange(8, 10 + 0.20); } }