UPSTREAM: <drop>: this commit will be replaced by
@@ -481,7 +481,7 @@ func setupCRD(f *framework.Framework, schema []byte, groupSuffix string, version
func setupCRDAndVerifySchema(f *framework.Framework, schema, expect []byte, groupSuffix string, versions ...string) (tCRD *crd.TestCrd, err error) {
defer func() {
- if err != nil {
+ if err == nil {
framework.Logf("sleeping 45 seconds before running the actual tests, we hope that during all API servers converge during that window, see %q for more", "https://github.com/kubernetes/kubernetes/pull/90452")
time.Sleep(time.Second * 45)
}
