Skip to content
This repository has been archived by the owner on Apr 19, 2024. It is now read-only.

Commit

Permalink
Tidy code.
Browse files Browse the repository at this point in the history
  • Loading branch information
Baliedge committed Feb 22, 2024
1 parent 9691805 commit 2e46a48
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions functional_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1073,16 +1073,16 @@ func TestGlobalRateLimitsWithLoadBalancing(t *testing.T) {
}

// Send two hits that should be processed by the owner and non-owner and
// deplete the limit consistently
// deplete the limit consistently.
sendHit(guber.Status_UNDER_LIMIT, 1)
sendHit(guber.Status_UNDER_LIMIT, 2)

// Sleep to ensure the global broadcast occurs (every 100ms)
// Sleep to ensure the global broadcast occurs (every 100ms).
time.Sleep(150 * time.Millisecond)

// All successive hits should return OVER_LIMIT.
for i := 0; i < 10; i++ {
sendHit(guber.Status_OVER_LIMIT, i+2)
for i := 2; i <= 10; i++ {
sendHit(guber.Status_OVER_LIMIT, i)
}
}

Expand Down

0 comments on commit 2e46a48

Please sign in to comment.