Skip to content

Commit

Permalink
address
Browse files Browse the repository at this point in the history
Signed-off-by: nolouch <[email protected]>
  • Loading branch information
nolouch committed Jul 17, 2024
1 parent 4defc8a commit a697bfc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/mcs/resourcemanager/server/token_buckets_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -154,14 +154,14 @@ func TestGroupTokenBucketRequestLoop(t *testing.T) {
globalBucketTokensAfterAssign float64
expectedTrickleMs int64
}{
/* requestTokens, assignedTokens, globalBucketTokensAfterAssign, trickleTime */
/* requestTokens, assignedTokens, globalBucketTokensAfterAssign, TrickleMs */
{50000, 50000, 0, 0},
{50000, 30000, -20000, defaultTrickleMs},
{30000, 15000, -25000, defaultTrickleMs},
{15000, 12500, -27500, defaultTrickleMs},
{12500, 11250, -28750, defaultTrickleMs},
{11250, 10625, -29375, defaultTrickleMs},
// RU_PER_SEC is close to 2000, RU_PER_SEC = assignedTokens / TrickleTime.
// RU_PER_SEC is close to 2000, RU_PER_SEC = assignedTokens / TrickleMs / 1000.
{10625, 10312.5, -29687.5, defaultTrickleMs},
{10312.5, 10156.25, -29843.75, defaultTrickleMs},
{10156.25, 10078.125, -29921.875, defaultTrickleMs},
Expand Down

0 comments on commit a697bfc

Please sign in to comment.