Add FakeNeverRateLimitter

This commit is contained in:
gmarek
2016-02-05 16:52:07 +01:00
parent 14e2c2b740
commit 6b2507485f
6 changed files with 96 additions and 26 deletions

View File

@@ -66,7 +66,7 @@ var _ = Describe("Service endpoints latency", func() {
// Turn off rate limiting--it interferes with our measurements.
oldThrottle := f.Client.RESTClient.Throttle
f.Client.RESTClient.Throttle = util.NewFakeRateLimiter()
f.Client.RESTClient.Throttle = util.NewFakeAlwaysRateLimiter()
defer func() { f.Client.RESTClient.Throttle = oldThrottle }()
failing := sets.NewString()