Skip to content

Commit

Permalink
support learning mode for event reporter
Browse files Browse the repository at this point in the history
  • Loading branch information
pasha-codefresh committed Jan 17, 2024
1 parent 3333892 commit 319eb58
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions event_reporter/reporter/rate_limiter_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand All @@ -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)
}
Expand All @@ -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")
}
Expand Down

0 comments on commit 319eb58

Please sign in to comment.