Skip to content

Commit 095c4a4

Browse files
committed
Don't rate-limit on test control plane
If you share client across a test, then client-side rate-limitting will slow down your test drastically.
1 parent 276610b commit 095c4a4

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

pkg/envtest/server.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,9 @@ func (te *Environment) Start() (*rest.Config, error) {
169169
// Create the *rest.Config for creating new clients
170170
te.Config = &rest.Config{
171171
Host: te.ControlPlane.APIURL().Host,
172+
// gotta go fast during tests -- we don't really care about overwhelming our test API server
173+
QPS: 1000.0,
174+
Burst: 2000.0,
172175
}
173176
}
174177

0 commit comments

Comments
 (0)