Skip to content

Commit e3bb757

Browse files
authored
Merge pull request kubernetes#124143 from enj/enj/i/svm_update_crd_flake
svm test: wait after updating CRD to avoid flakes
2 parents 79c61d5 + f338ab5 commit e3bb757

File tree

1 file changed

+4
-0
lines changed
  • test/integration/storageversionmigrator

1 file changed

+4
-0
lines changed

test/integration/storageversionmigrator/util.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -773,6 +773,10 @@ func (svm *svmTest) updateCRD(
773773
t.Fatalf("Failed to get CRD: %v", err)
774774
}
775775

776+
// TODO: wrap all actions after updateCRD with wait loops so we do not need this sleep
777+
// it is currently necessary because we update the CRD but do not otherwise guarantee that the updated config is active
778+
time.Sleep(10 * time.Second)
779+
776780
return crd
777781
}
778782

0 commit comments

Comments
 (0)