Skip to content

Commit

Permalink
test(webhook): add explicit concurrency for mock handler
Browse files Browse the repository at this point in the history
Signed-off-by: phanama <[email protected]>
  • Loading branch information
phanama committed Sep 10, 2023
1 parent 60d1c10 commit 277c83f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion util/webhook/webhook_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ func NewMockHandler(reactor *reactorDef, applicationNamespaces []string, objects
}
cacheClient := cacheutil.NewCache(cacheutil.NewInMemoryCache(1 * time.Hour))

return NewHandler("argocd", applicationNamespaces, appClientset, &settings.ArgoCDSettings{}, &fakeSettingsSrc{}, cache.NewCache(
return NewHandler("argocd", applicationNamespaces, appClientset, &settings.ArgoCDSettings{WebhookMaxConcurrentAppRefresh: 10}, &fakeSettingsSrc{}, cache.NewCache(
cacheClient,
1*time.Minute,
1*time.Minute,
Expand Down

0 comments on commit 277c83f

Please sign in to comment.