Increase QPS limits in density test

This commit is contained in:
Wojciech Tyczynski 2016-02-24 12:12:57 +01:00
parent 81fcd778e3
commit a8ed5103f6

View File

@ -135,9 +135,16 @@ var _ = Describe("Density", func() {
framework.NamespaceDeletionTimeout = time.Hour framework.NamespaceDeletionTimeout = time.Hour
BeforeEach(func() { BeforeEach(func() {
c = framework.Client // Explicitly create a client with higher QPS limits.
// However, make those at most comparable to components.
config, err := loadConfig()
Expect(err).NotTo(HaveOccurred())
config.QPS = 20
config.Burst = 30
c, err = loadClientFromConfig(config)
Expect(err).NotTo(HaveOccurred())
ns = framework.Namespace.Name ns = framework.Namespace.Name
var err error
nodes := ListSchedulableNodesOrDie(c) nodes := ListSchedulableNodesOrDie(c)
nodeCount = len(nodes.Items) nodeCount = len(nodes.Items)