Skip to content

Commit

Permalink
Add wait for cache sync
Browse files Browse the repository at this point in the history
Kubernetes-commit: ad60b95eb633b09ba4ebb9caa0ddbabfefd29ae5
  • Loading branch information
Jefftree authored and k8s-publishing-bot committed Aug 22, 2023
1 parent 3ea4ec4 commit b838126
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/controller/openapi/controller_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -332,6 +332,7 @@ func setup(t *testing.T) (*testEnv, context.Context) {
ctx, cancel := context.WithCancel(context.Background())

factory.Start(ctx.Done())
factory.WaitForCacheSync(ctx.Done())

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

0 comments on commit b838126

Please sign in to comment.