Merge pull request #130115 from danmillwood/danmillwood-dispatcher-test-patch

Fix intermittent failure in TestDispatcher test
This commit is contained in:
Kubernetes Prow Robot
2025-03-18 20:34:01 -07:00
committed by GitHub

View File

@@ -656,8 +656,8 @@ func TestDispatcher(t *testing.T) {
if err != nil {
t.Fatal(err)
}
informerFactory.WaitForCacheSync(ctx.Done())
informerFactory.Start(ctx.Done())
informerFactory.WaitForCacheSync(ctx.Done())
for i, h := range tc.policyHooks {
tc.policyHooks[i].ParamInformer = paramInformer
tc.policyHooks[i].ParamScope = testParamScope{}