mirror of https://github.com/fluxcd/cli-utils.git
chore: Disable client-side throttling for tests
This commit is contained in:
parent
5d06234969
commit
5fb2a68abb
|
|
@ -57,10 +57,10 @@ var _ = Describe("Applier", func() {
|
||||||
cfg, err := ctrl.GetConfig()
|
cfg, err := ctrl.GetConfig()
|
||||||
Expect(err).NotTo(HaveOccurred())
|
Expect(err).NotTo(HaveOccurred())
|
||||||
|
|
||||||
// increase QPS from 5 to 20
|
// Disable client-side throttling.
|
||||||
cfg.QPS = 20
|
// Recent versions of kind support server-side throttling.
|
||||||
// increase Burst QPS from 10 to 40
|
cfg.QPS = -1
|
||||||
cfg.Burst = 40
|
cfg.Burst = -1
|
||||||
|
|
||||||
inventoryConfigs[ConfigMapTypeInvConfig] = invconfig.NewConfigMapTypeInvConfig(cfg)
|
inventoryConfigs[ConfigMapTypeInvConfig] = invconfig.NewConfigMapTypeInvConfig(cfg)
|
||||||
inventoryConfigs[CustomTypeInvConfig] = invconfig.NewCustomTypeInvConfig(cfg)
|
inventoryConfigs[CustomTypeInvConfig] = invconfig.NewCustomTypeInvConfig(cfg)
|
||||||
|
|
|
||||||
|
|
@ -10,7 +10,7 @@ import (
|
||||||
. "github.com/onsi/gomega"
|
. "github.com/onsi/gomega"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestE2e(t *testing.T) {
|
func TestStress(t *testing.T) {
|
||||||
RegisterFailHandler(Fail)
|
RegisterFailHandler(Fail)
|
||||||
RunSpecs(t, "Stress Test Suite")
|
RunSpecs(t, "Stress Test Suite")
|
||||||
}
|
}
|
||||||
|
|
@ -45,10 +45,10 @@ var _ = Describe("Applier", func() {
|
||||||
cfg, err := ctrl.GetConfig()
|
cfg, err := ctrl.GetConfig()
|
||||||
Expect(err).NotTo(HaveOccurred())
|
Expect(err).NotTo(HaveOccurred())
|
||||||
|
|
||||||
// increase QPS from 5 to 20
|
// Disable client-side throttling.
|
||||||
cfg.QPS = 20
|
// Recent versions of kind support server-side throttling.
|
||||||
// increase Burst QPS from 10 to 40
|
cfg.QPS = -1
|
||||||
cfg.Burst = 40
|
cfg.Burst = -1
|
||||||
|
|
||||||
invConfig = invconfig.NewCustomTypeInvConfig(cfg)
|
invConfig = invconfig.NewCustomTypeInvConfig(cfg)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue