test(credentials): Disable rate limiting for test
This test quickly polls a list endpoint, which exceeds the default rate limits before the test can complete in CI.
This commit is contained in:
2 files changed
+13
-1
No files matched your search
@@ -495,6 +495,8 @@ type TestControllerOpts struct {
|
||||
|
||||
// Toggle worker auth debugging
|
||||
WorkerAuthDebuggingEnabled *atomic.Bool
|
||||
|
||||
DisableRateLimiting bool
|
||||
}
|
||||
|
||||
func NewTestController(t testing.TB, opts *TestControllerOpts) *TestController {
|
||||
@@ -806,6 +808,10 @@ func TestControllerConfig(t testing.TB, ctx context.Context, tc *TestController,
|
||||
}
|
||||
}
|
||||
|
||||
if opts.DisableRateLimiting {
|
||||
opts.Config.Controller.ApiRateLimitDisable = true
|
||||
}
|
||||
|
||||
return &Config{
|
||||
RawConfig: opts.Config,
|
||||
Server: tc.b,
|
||||
|
||||
Reference in new issue
Block a user