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

Commit

Permalink
Fix TestHealthCheck.
Browse files Browse the repository at this point in the history
  • Loading branch information
Baliedge committed Mar 11, 2024
1 parent 65ee4fa commit d5c74d2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions functional_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1563,8 +1563,8 @@ func TestHealthCheck(t *testing.T) {
_, err = client.GetRateLimits(context.Background(), &guber.GetRateLimitsReq{
Requests: []*guber.RateLimitReq{
{
Name: "test_health_check",
UniqueKey: "account:12345",
Name: name,
UniqueKey: key,
Algorithm: guber.Algorithm_TOKEN_BUCKET,
Behavior: guber.Behavior_GLOBAL,
Duration: guber.Second * 3,
Expand All @@ -1575,7 +1575,7 @@ func TestHealthCheck(t *testing.T) {
})
require.Nil(t, err)

testutil.UntilPass(t, 20, clock.Millisecond*300, func(t testutil.TestingT) {
testutil.UntilPass(t, 20, 300*clock.Millisecond, func(t testutil.TestingT) {
// Check the health again to get back the connection error
healthResp, err = client.HealthCheck(context.Background(), &guber.HealthCheckReq{})
if assert.Nil(t, err) {
Expand Down

0 comments on commit d5c74d2

Please sign in to comment.