From 07d03fe54ca4c63378553f0a5daa45f99a6c3c45 Mon Sep 17 00:00:00 2001 From: Marcial Rosales Date: Thu, 21 Oct 2021 13:15:18 +0200 Subject: [PATCH] Use k8sQueryTimeout rather than hardcoding it --- system_tests/system_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/system_tests/system_test.go b/system_tests/system_test.go index 3b2161b05..c3bc962e3 100644 --- a/system_tests/system_test.go +++ b/system_tests/system_test.go @@ -165,7 +165,7 @@ var _ = Describe("Operator", func() { Expect(err).ToNot(HaveOccurred()) return configMap.Annotations } - Eventually(getConfigMapAnnotations, 1*time.Minute, 1).Should( + Eventually(getConfigMapAnnotations, k8sQueryTimeout, 1).Should( HaveKey("rabbitmq.com/pluginsUpdatedAt"), "plugins ConfigMap should have been annotated") Eventually(getConfigMapAnnotations, 4*time.Minute, 1).Should( Not(HaveKey("rabbitmq.com/pluginsUpdatedAt")), "plugins ConfigMap annotation should have been removed")