mirror of
https://github.com/optim-enterprises-bv/kubernetes.git
synced 2025-12-12 19:15:36 +00:00
Add wait for cache sync
This commit is contained in:
@@ -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{})
|
||||
|
||||
Reference in New Issue
Block a user