Skip to content

Commit

Permalink
remove useless variable from TestGetBatches
Browse files Browse the repository at this point in the history
  • Loading branch information
scbedd committed Feb 16, 2023
1 parent 3e2becb commit 1b7431f
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -803,7 +803,6 @@ public void TestGetBatches(string input, int batchCount)
var chunks = testRecordingHandler.GetBatches(bodyData, batchCount);

int bodyPosition = 0;
int byteCount = 0;

// ensure that all bytes are accounted for across the batches
foreach(var chunk in chunks)
Expand All @@ -812,11 +811,10 @@ public void TestGetBatches(string input, int batchCount)
{
Assert.Equal(chunk[j], bodyData[bodyPosition]);
bodyPosition++;
byteCount++;
}
}

Assert.Equal(byteCount, bodyData.Length);
Assert.Equal(bodyPosition, bodyData.Length);
}

#endregion
Expand Down

0 comments on commit 1b7431f

Please sign in to comment.