Skip to content

Commit b838126

Browse files
Jefftreek8s-publishing-bot
authored andcommitted
Add wait for cache sync
Kubernetes-commit: ad60b95eb633b09ba4ebb9caa0ddbabfefd29ae5
1 parent 3ea4ec4 commit b838126

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

pkg/controller/openapi/controller_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -332,6 +332,7 @@ func setup(t *testing.T) (*testEnv, context.Context) {
332332
ctx, cancel := context.WithCancel(context.Background())
333333

334334
factory.Start(ctx.Done())
335+
factory.WaitForCacheSync(ctx.Done())
335336

336337
env.mux = http.NewServeMux()
337338
h := handler.NewOpenAPIService(&spec.Swagger{})

0 commit comments

Comments
 (0)