fix potential deadlock

This commit is contained in:
Shihao Xia 2021-06-03 21:45:48 -04:00
parent 359b722c19
commit afb0023ab3

View File

@ -176,7 +176,7 @@ func TestServiceAccountCreation(t *testing.T) {
saStore := saInformer.Informer().GetStore() saStore := saInformer.Informer().GetStore()
nsStore := nsInformer.Informer().GetStore() nsStore := nsInformer.Informer().GetStore()
syncCalls := make(chan struct{}) syncCalls := make(chan struct{}, 1)
controller.syncHandler = func(ctx context.Context, key string) error { controller.syncHandler = func(ctx context.Context, key string) error {
err := controller.syncNamespace(ctx, key) err := controller.syncNamespace(ctx, key)
if err != nil { if err != nil {