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:
Timothy Messier committed 2023-12-04 22:40:39 +00:00
1 parent cd21f10a3b
commit 758e7b8bf1
2 files changed
+13 -1

No files matched your search

+6
View File
@@ -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,