apiextensions: add storage race TODO in CRD conversion e2e test

k3s-v1.15.3
Dr. Stefan Schimanski 2019-05-24 11:06:45 +02:00
parent 9ddc9ccc57
commit cd0b46874a
1 changed files with 3 additions and 0 deletions

View File

@ -40,6 +40,7 @@ import (
"github.com/onsi/ginkgo"
"github.com/onsi/gomega"
// ensure libs have a chance to initialize
_ "github.com/stretchr/testify/assert"
)
@ -386,6 +387,8 @@ func testCRListConversion(f *framework.Framework, testCrd *crd.TestCrd) {
// After changing a CRD, the resources for versions will be re-created that can be result in
// cancelled connection (e.g. "grpc connection closed" or "context canceled").
// Just retrying fixes that.
//
// TODO: we have to wait for the storage version to become effective. Storage version changes are not instant.
for i := 0; i < 5; i++ {
_, err = customResourceClients["v1"].Create(crInstance, metav1.CreateOptions{})
if err == nil {