mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-10 04:27:54 +00:00
Add wait for cache sync
This commit is contained in:
parent
9aba98ad71
commit
9c83c380e0
@ -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{})
|
||||
|
Loading…
Reference in New Issue
Block a user