forked from pingcap/tidb
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathBUILD.bazel
53 lines (51 loc) · 1.42 KB
/
BUILD.bazel
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test")
go_library(
name = "owner",
srcs = [
"manager.go",
"mock.go",
],
importpath = "github.com/pingcap/tidb/owner",
visibility = ["//visibility:public"],
deps = [
"//metrics",
"//parser/terror",
"//util",
"//util/logutil",
"@com_github_pingcap_errors//:errors",
"@io_etcd_go_etcd_api_v3//mvccpb",
"@io_etcd_go_etcd_api_v3//v3rpc/rpctypes",
"@io_etcd_go_etcd_client_v3//:client",
"@io_etcd_go_etcd_client_v3//concurrency",
"@org_uber_go_zap//:zap",
],
)
go_test(
name = "owner_test",
timeout = "short",
srcs = [
"fail_test.go",
"main_test.go",
"manager_test.go",
],
embed = [":owner"],
flaky = True,
deps = [
"//ddl",
"//infoschema",
"//parser/terror",
"//store/mockstore",
"//testkit/testsetup",
"//util",
"//util/logutil",
"@com_github_pingcap_errors//:errors",
"@com_github_pingcap_failpoint//:failpoint",
"@com_github_stretchr_testify//assert",
"@com_github_stretchr_testify//require",
"@io_etcd_go_etcd_client_v3//:client",
"@io_etcd_go_etcd_client_v3//concurrency",
"@io_etcd_go_etcd_tests_v3//integration",
"@org_golang_google_grpc//:grpc",
"@org_uber_go_goleak//:goleak",
],
)