Skip to content

Commit

Permalink
add timeout for LDAP dial and requests
Browse files Browse the repository at this point in the history
Signed-off-by: Yang Keao <[email protected]>
  • Loading branch information
YangKeao committed Mar 19, 2024
1 parent 61c4714 commit af28965
Show file tree
Hide file tree
Showing 5 changed files with 282 additions and 172 deletions.
5 changes: 4 additions & 1 deletion pkg/privilege/privileges/ldap/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,12 @@ go_library(
visibility = ["//visibility:public"],
deps = [
"//pkg/privilege/conn",
"//pkg/util/intest",
"//pkg/util/logutil",
"@com_github_go_ldap_ldap_v3//:ldap",
"@com_github_ngaut_pools//:pools",
"@com_github_pingcap_errors//:errors",
"@org_uber_go_zap//:zap",
],
)

Expand All @@ -29,6 +32,6 @@ go_test(
"test/ldap.key",
],
flaky = True,
shard_count = 3,
shard_count = 4,
deps = ["@com_github_stretchr_testify//require"],
)
Loading

0 comments on commit af28965

Please sign in to comment.