mirror of
https://github.com/k3s-io/kubernetes.git
synced 2026-07-21 17:15:35 +00:00
fix: Add wait for cache sync for customresourcediscovery tests
This commit is contained in:
@@ -232,6 +232,8 @@ func (env *testEnvironment) Start(ctx context.Context) {
|
||||
)
|
||||
|
||||
factory.Start(ctx.Done())
|
||||
factory.WaitForCacheSync(ctx.Done())
|
||||
|
||||
go discoveryController.Run(ctx.Done(), discoverySyncedCh)
|
||||
|
||||
select {
|
||||
|
||||
Reference in New Issue
Block a user