From 2fb42e46e088f584754f89d73cc1833cc254db48 Mon Sep 17 00:00:00 2001 From: Daniel Lipovetsky Date: Mon, 9 May 2022 09:45:50 -0700 Subject: [PATCH] test: Reduce amount of time to wait before updating object --- .../controllers/clusterresourceset_controller_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/exp/addons/internal/controllers/clusterresourceset_controller_test.go b/exp/addons/internal/controllers/clusterresourceset_controller_test.go index fb5eafa62240..727e8b8b3599 100644 --- a/exp/addons/internal/controllers/clusterresourceset_controller_test.go +++ b/exp/addons/internal/controllers/clusterresourceset_controller_test.go @@ -1271,7 +1271,7 @@ data: // value is unlikely to change. Our test below compares the lastAppliedTime values of two reconciles, so we wait // to prevent the reconciles from running within the same second. Related issue: https://issues.k8s.io/15262 t.Log("Letting some time pass before updating the resource, so that lastAppliedTime will be different.") - time.Sleep(10 * time.Second) + time.Sleep(2 * time.Second) // update the configmap data t.Log("Updating the configmap resource") @@ -1362,7 +1362,7 @@ data: // value is unlikely to change. Our test below compares the lastAppliedTime values of two reconciles, so we wait // to prevent the reconciles from running within the same second. Related issue: https://issues.k8s.io/15262 t.Log("Letting some time pass before updating the resource, so that lastAppliedTime will be different.") - time.Sleep(10 * time.Second) + time.Sleep(2 * time.Second) // update the secrete, but not its data t.Log("Updating the secret resource")