Skip to content

Commit

Permalink
Fix: Fixed tests
Browse files Browse the repository at this point in the history
  • Loading branch information
aalur committed Mar 21, 2024
1 parent d33be52 commit dd8edaf
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ func TestApp_singleBurst_Success(t *testing.T) {
ctx, cancel := context.WithTimeout(context.Background(), 30*time.Second)
defer cancel()

go app.processQueue(ctx, 3, 1000, 1, 1000)
go app.processQueue(ctx, 3, 1000*time.Millisecond, 1, 1000*time.Millisecond)

startTime := time.Now()

Expand Down Expand Up @@ -83,7 +83,7 @@ func TestApp_MultiBurst_Success(t *testing.T) {
ctx, cancel := context.WithTimeout(context.Background(), 30*time.Second)
defer cancel()

go app.processQueue(ctx, 3, 1000, 10, 1000)
go app.processQueue(ctx, 3, 1000*time.Millisecond, 10, 1000*time.Millisecond)

startTime := time.Now()

Expand Down Expand Up @@ -126,7 +126,7 @@ func TestApp_TestSlackRequestRate(t *testing.T) {
ctx, cancel := context.WithTimeout(context.Background(), 30*time.Second)
defer cancel()

go app.processQueue(ctx, 3, 1000, 1, 250)
go app.processQueue(ctx, 3, 1000*time.Millisecond, 1, 250*time.Millisecond)

startTime := time.Now()

Expand Down

0 comments on commit dd8edaf

Please sign in to comment.