Merge pull request #102636 from charlesxsh/svcacct-ctrl-test

fix a potential deadlock
This commit is contained in:
Kubernetes Prow Robot 2022-01-05 21:12:27 -08:00 committed by GitHub
commit 65378e7747
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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