mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-15 06:01:50 +00:00
Merge pull request #102636 from charlesxsh/svcacct-ctrl-test
fix a potential deadlock
This commit is contained in:
@@ -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 {
|
||||
|
Reference in New Issue
Block a user