fix: Add wait for cache sync for customresourcediscovery tests

This commit is contained in:
Michael Aspinwall
2025-06-24 22:19:35 +00:00
parent 80474f7b4a
commit 35ecb00f1c

View File

@@ -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 {