Skip to content

Commit

Permalink
fix(ratelimit_test.go): adjust upper limit calculation to 1.4 times t…
Browse files Browse the repository at this point in the history
…he exact limit
  • Loading branch information
chronark committed Aug 8, 2024
1 parent bfbbf09 commit 327ad79
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/agent/services/ratelimit/ratelimit_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ func TestRatelimit_Consistency(t *testing.T) {
}

exactLimit := (tc.limit / (tc.duration / 1000)) * tc.seconds
upperLimit := int64(float64(exactLimit) * 1.25)
upperLimit := int64(float64(exactLimit) * 1.4)
lowerLimit := int64(float64(exactLimit) * 0.9)

require.GreaterOrEqual(t, passed, lowerLimit)
Expand Down

1 comment on commit 327ad79

@vercel
Copy link

@vercel vercel bot commented on 327ad79 Aug 8, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

planetfall – ./apps/planetfall

planetfall-git-main-unkey.vercel.app
planetfall-two.vercel.app
planetfall-unkey.vercel.app
planetfall.unkey.dev

Please sign in to comment.