diff --git a/pkg/controller/serviceaccount/serviceaccounts_controller_test.go b/pkg/controller/serviceaccount/serviceaccounts_controller_test.go index a3e37f348ee..6ed9a842b7a 100644 --- a/pkg/controller/serviceaccount/serviceaccounts_controller_test.go +++ b/pkg/controller/serviceaccount/serviceaccounts_controller_test.go @@ -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 {