diff --git a/event_reporter/reporter/rate_limiter_test.go b/event_reporter/reporter/rate_limiter_test.go index bba89a9a39929..499374f3f4159 100644 --- a/event_reporter/reporter/rate_limiter_test.go +++ b/event_reporter/reporter/rate_limiter_test.go @@ -10,7 +10,7 @@ func TestRateLimiter(t *testing.T) { rl := NewRateLimiter(&RateLimiterOpts{ Enabled: false, }) - d, err := rl.Limit("foo") + d, err, _ := rl.Limit("foo") if err != nil { t.Errorf("Expected no error, got %v", err) } @@ -24,7 +24,7 @@ func TestRateLimiter(t *testing.T) { Rate: time.Second, Capacity: 1, }) - d, err := rl.Limit("foo") + d, err, _ := rl.Limit("foo") if err != nil { t.Errorf("Expected no error, got %v", err) } @@ -38,7 +38,7 @@ func TestRateLimiter(t *testing.T) { Rate: time.Second, Capacity: 0, }) - _, err := rl.Limit("foo") + _, err, _ := rl.Limit("foo") if err == nil { t.Errorf("Expected error, got nil") }