Skip to content

Commit

Permalink
adding additional unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
Vincent Chiang committed Oct 24, 2023
1 parent e5a8756 commit a0869c4
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ public void ThrottleScaleDownIfNecessaryInternal_ReturnsExpected(int currentTarg
[TestCase(60, 10, 10)]
[TestCase(70, 10, 10)]
[TestCase(150, 10, 10)]
[TestCase(2147483650, 1, 1)] // Testing eventCount > int.MaxInt is 2147483647
public void GetScaleResultInternal_ReturnsExpected(long eventCount, int partitionCount, int expectedTargetWorkerCount)
{
TargetScalerResult result = _targetScaler.GetScaleResultInternal(new TargetScalerContext { }, eventCount, partitionCount);
Expand Down

0 comments on commit a0869c4

Please sign in to comment.