diff --git a/tools/test-proxy/Azure.Sdk.Tools.TestProxy.Tests/RecordingHandlerTests.cs b/tools/test-proxy/Azure.Sdk.Tools.TestProxy.Tests/RecordingHandlerTests.cs index 613ffde1ab0..441ee043b2c 100644 --- a/tools/test-proxy/Azure.Sdk.Tools.TestProxy.Tests/RecordingHandlerTests.cs +++ b/tools/test-proxy/Azure.Sdk.Tools.TestProxy.Tests/RecordingHandlerTests.cs @@ -808,7 +808,7 @@ public void TestGetBatches(string input, int batchCount) // ensure that all bytes are accounted for across the batches foreach(var chunk in chunks) { - for (int j = 0; j < chunk.Length && bodyPosition < bodyData.Length; j++) + for (int j = 0; j < chunk.Length; j++) { Assert.Equal(chunk[j], bodyData[bodyPosition]); bodyPosition++;