chore: Disable client-side throttling for tests

This commit is contained in:
Karl Isenberg 2022-04-15 16:36:22 -07:00
parent 5d06234969
commit 5fb2a68abb
3 changed files with 9 additions and 9 deletions

View File

@ -57,10 +57,10 @@ var _ = Describe("Applier", func() {
cfg, err := ctrl.GetConfig()
Expect(err).NotTo(HaveOccurred())
// increase QPS from 5 to 20
cfg.QPS = 20
// increase Burst QPS from 10 to 40
cfg.Burst = 40
// Disable client-side throttling.
// Recent versions of kind support server-side throttling.
cfg.QPS = -1
cfg.Burst = -1
inventoryConfigs[ConfigMapTypeInvConfig] = invconfig.NewConfigMapTypeInvConfig(cfg)
inventoryConfigs[CustomTypeInvConfig] = invconfig.NewCustomTypeInvConfig(cfg)

View File

@ -10,7 +10,7 @@ import (
. "github.com/onsi/gomega"
)
func TestE2e(t *testing.T) {
func TestStress(t *testing.T) {
RegisterFailHandler(Fail)
RunSpecs(t, "Stress Test Suite")
}

View File

@ -45,10 +45,10 @@ var _ = Describe("Applier", func() {
cfg, err := ctrl.GetConfig()
Expect(err).NotTo(HaveOccurred())
// increase QPS from 5 to 20
cfg.QPS = 20
// increase Burst QPS from 10 to 40
cfg.Burst = 40
// Disable client-side throttling.
// Recent versions of kind support server-side throttling.
cfg.QPS = -1
cfg.Burst = -1
invConfig = invconfig.NewCustomTypeInvConfig(cfg)