mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-10 04:27:54 +00:00
Fix intermittent test failure
Start the informerFactory before WaitForCacheSync
This commit is contained in:
parent
75909b8920
commit
b9cd017a21
@ -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{}
|
||||
|
Loading…
Reference in New Issue
Block a user