From b164b0ec2d639934328cb9ce57509cb32357695d Mon Sep 17 00:00:00 2001 From: adrianc Date: Thu, 1 Feb 2024 13:18:34 +0200 Subject: [PATCH] Reduce timeout period in controller tests there is no need to have such a big timeout for envtest tests. Signed-off-by: adrianc --- controllers/sriovnetworkpoolconfig_controller_test.go | 2 +- controllers/sriovoperatorconfig_controller_test.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/controllers/sriovnetworkpoolconfig_controller_test.go b/controllers/sriovnetworkpoolconfig_controller_test.go index d0a7090c5..c0c692a12 100644 --- a/controllers/sriovnetworkpoolconfig_controller_test.go +++ b/controllers/sriovnetworkpoolconfig_controller_test.go @@ -75,7 +75,7 @@ var _ = Describe("Operator", func() { return err } return nil - }, util.APITimeout*3, util.RetryInterval).Should(Succeed()) + }, util.APITimeout, util.RetryInterval).Should(Succeed()) }) }) }) diff --git a/controllers/sriovoperatorconfig_controller_test.go b/controllers/sriovoperatorconfig_controller_test.go index c2e779ee1..a6aa5602a 100644 --- a/controllers/sriovoperatorconfig_controller_test.go +++ b/controllers/sriovoperatorconfig_controller_test.go @@ -148,7 +148,7 @@ var _ = Describe("Operator", func() { return nil } return daemonSet.Spec.Template.Spec.NodeSelector - }, util.APITimeout*10, util.RetryInterval).Should(Equal(config.Spec.ConfigDaemonNodeSelector)) + }, util.APITimeout, util.RetryInterval).Should(Equal(config.Spec.ConfigDaemonNodeSelector)) }) It("should be able to do multiple updates to the node selector of sriov-network-config-daemon", func() { @@ -170,7 +170,7 @@ var _ = Describe("Operator", func() { return nil } return daemonSet.Spec.Template.Spec.NodeSelector - }, util.APITimeout*10, util.RetryInterval).Should(Equal(config.Spec.ConfigDaemonNodeSelector)) + }, util.APITimeout, util.RetryInterval).Should(Equal(config.Spec.ConfigDaemonNodeSelector)) }) })