Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
Signed-off-by: nolouch <nolouch@gmail.com>
  • Loading branch information
nolouch committed Apr 11, 2024
1 parent 39dfc43 commit 06a1903
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/ratelimit/runner_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ func TestAsyncRunner(t *testing.T) {
t.Run("RunTask", func(t *testing.T) {
limiter := NewConcurrencyLimiter(1)
runner := NewAsyncRunner("test", time.Second)
runner.Start()
defer runner.Stop()

var wg sync.WaitGroup
Expand All @@ -48,6 +49,7 @@ func TestAsyncRunner(t *testing.T) {
t.Run("MaxPendingDuration", func(t *testing.T) {
limiter := NewConcurrencyLimiter(1)
runner := NewAsyncRunner("test", 2*time.Millisecond)
runner.Start()
defer runner.Stop()
var wg sync.WaitGroup
for i := 0; i < 10; i++ {
Expand Down

0 comments on commit 06a1903

Please sign in to comment.