From 656d838bef993d13b08f60372754a48fe31fc3b8 Mon Sep 17 00:00:00 2001 From: Nikolay Zdravkov Date: Mon, 9 Nov 2026 15:49:44 +0200 Subject: [PATCH] Check the maximum operation count in HeartbeatConsistencyCheckPingsAsync --- tests/StackExchange.Redis.Tests/ConnectCustomConfigTests.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/StackExchange.Redis.Tests/ConnectCustomConfigTests.cs b/tests/StackExchange.Redis.Tests/ConnectCustomConfigTests.cs index f01541b61..c700d0edb 100644 --- a/tests/StackExchange.Redis.Tests/ConnectCustomConfigTests.cs +++ b/tests/StackExchange.Redis.Tests/ConnectCustomConfigTests.cs @@ -123,6 +123,6 @@ public async Task HeartbeatConsistencyCheckPingsAsync(bool enableConsistencyChec var opCount = postCount - preCount; Log("OperationCount (diff): " + opCount); - Assert.True(minExpected <= opCount && opCount >= minExpected, $"Expected opcount ({opCount}) between {minExpected}-{maxExpected}"); + Assert.True(minExpected <= opCount && opCount <= maxExpected, $"Expected opcount ({opCount}) between {minExpected}-{maxExpected}"); } }