Skip to content

Commit 7fbb6a4

Browse files
p0lyn0mialsoltysh
authored andcommitted
UPSTREAM: 90452: refactor/improve CRD publishing e2e tests in an HA setup
openshift-rebase(v1.24):source=ce8d63d76a0
1 parent 9af7be5 commit 7fbb6a4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/e2e/apimachinery/crd_publish_openapi.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -522,7 +522,7 @@ func setupCRDAndVerifySchema(f *framework.Framework, schema, expect []byte, grou
522522

523523
func setupCRDAndVerifySchemaWithOptions(f *framework.Framework, schema, expect []byte, groupSuffix string, versions []string, options ...crd.Option) (tCRD *crd.TestCrd, err error) {
524524
defer func() {
525-
if err == nil {
525+
if err != nil {
526526
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")
527527
time.Sleep(time.Second * 45)
528528
}

0 commit comments

Comments
 (0)