Skip to content

Commit 5fb2a68

Browse files
committed
chore: Disable client-side throttling for tests
1 parent 5d06234 commit 5fb2a68

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

test/e2e/e2e_test.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -57,10 +57,10 @@ var _ = Describe("Applier", func() {
5757
cfg, err := ctrl.GetConfig()
5858
Expect(err).NotTo(HaveOccurred())
5959

60-
// increase QPS from 5 to 20
61-
cfg.QPS = 20
62-
// increase Burst QPS from 10 to 40
63-
cfg.Burst = 40
60+
// Disable client-side throttling.
61+
// Recent versions of kind support server-side throttling.
62+
cfg.QPS = -1
63+
cfg.Burst = -1
6464

6565
inventoryConfigs[ConfigMapTypeInvConfig] = invconfig.NewConfigMapTypeInvConfig(cfg)
6666
inventoryConfigs[CustomTypeInvConfig] = invconfig.NewCustomTypeInvConfig(cfg)

test/stress/e2e_suite_test.go renamed to test/stress/stress_suite_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import (
1010
. "github.com/onsi/gomega"
1111
)
1212

13-
func TestE2e(t *testing.T) {
13+
func TestStress(t *testing.T) {
1414
RegisterFailHandler(Fail)
1515
RunSpecs(t, "Stress Test Suite")
1616
}

test/stress/stress_test.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,10 +45,10 @@ var _ = Describe("Applier", func() {
4545
cfg, err := ctrl.GetConfig()
4646
Expect(err).NotTo(HaveOccurred())
4747

48-
// increase QPS from 5 to 20
49-
cfg.QPS = 20
50-
// increase Burst QPS from 10 to 40
51-
cfg.Burst = 40
48+
// Disable client-side throttling.
49+
// Recent versions of kind support server-side throttling.
50+
cfg.QPS = -1
51+
cfg.Burst = -1
5252

5353
invConfig = invconfig.NewCustomTypeInvConfig(cfg)
5454

0 commit comments

Comments
 (0)