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()
|
||||
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)
|
||||
|
|
|
|||
|
|
@ -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")
|
||||
}
|
||||
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue