From f338ab5f9590bf4271a3beec259fb2bb3c901365 Mon Sep 17 00:00:00 2001 From: Monis Khan Date: Mon, 1 Apr 2024 16:15:29 -0400 Subject: [PATCH] svm test: wait after updating CRD to avoid flakes Signed-off-by: Monis Khan --- test/integration/storageversionmigrator/util.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/integration/storageversionmigrator/util.go b/test/integration/storageversionmigrator/util.go index 62b62e9a238..b0381e885eb 100644 --- a/test/integration/storageversionmigrator/util.go +++ b/test/integration/storageversionmigrator/util.go @@ -773,6 +773,10 @@ func (svm *svmTest) updateCRD( t.Fatalf("Failed to get CRD: %v", err) } + // TODO: wrap all actions after updateCRD with wait loops so we do not need this sleep + // it is currently necessary because we update the CRD but do not otherwise guarantee that the updated config is active + time.Sleep(10 * time.Second) + return crd }