Skip to content

Commit

Permalink
*: add timeout for test cases (#35844)
Browse files Browse the repository at this point in the history
  • Loading branch information
hawkingrei committed Jun 30, 2022
1 parent 1c259da commit 16df194
Show file tree
Hide file tree
Showing 29 changed files with 37 additions and 0 deletions.
1 change: 1 addition & 0 deletions ddl/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ go_library(

go_test(
name = "ddl_test",
timeout = "short",
srcs = [
"attributes_sql_test.go",
"callback_test.go",
Expand Down
1 change: 1 addition & 0 deletions expression/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ go_library(

go_test(
name = "expression_test",
timeout = "short",
srcs = [
"bench_test.go",
"builtin_arithmetic_test.go",
Expand Down
1 change: 1 addition & 0 deletions infoschema/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ go_library(
"//util/domainutil",
"//util/execdetails",
"//util/logutil",
"//util/mock",
"//util/pdapi",
"//util/sem",
"//util/set",
Expand Down
1 change: 1 addition & 0 deletions planner/core/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,7 @@ go_library(

go_test(
name = "core_test",
timeout = "short",
srcs = [
"cache_test.go",
"cacheable_checker_test.go",
Expand Down
1 change: 1 addition & 0 deletions planner/funcdep/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ go_library(

go_test(
name = "funcdep_test",
timeout = "short",
srcs = [
"extract_fd_test.go",
"fast_int_set_bench_test.go",
Expand Down
1 change: 1 addition & 0 deletions planner/implementation/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ go_library(

go_test(
name = "implementation_test",
timeout = "short",
srcs = [
"base_test.go",
"main_test.go",
Expand Down
1 change: 1 addition & 0 deletions planner/memo/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ go_library(

go_test(
name = "memo_test",
timeout = "short",
srcs = [
"expr_iterator_test.go",
"group_expr_test.go",
Expand Down
1 change: 1 addition & 0 deletions planner/util/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ go_library(

go_test(
name = "util_test",
timeout = "short",
srcs = [
"main_test.go",
"path_test.go",
Expand Down
1 change: 1 addition & 0 deletions privilege/privileges/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ go_library(

go_test(
name = "privileges_test",
timeout = "short",
srcs = [
"cache_test.go",
"main_test.go",
Expand Down
2 changes: 2 additions & 0 deletions server/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ go_library(
"//session/txninfo",
"//sessionctx",
"//sessionctx/binloginfo",
"//sessionctx/sessionstates",
"//sessionctx/stmtctx",
"//sessionctx/variable",
"//sessiontxn",
Expand Down Expand Up @@ -115,6 +116,7 @@ go_library(

go_test(
name = "server_test",
timeout = "short",
srcs = [
"column_test.go",
"conn_stmt_test.go",
Expand Down
2 changes: 2 additions & 0 deletions session/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ go_library(

go_test(
name = "session_test",
timeout = "short",
srcs = [
"bench_test.go",
"bootstrap_test.go",
Expand Down Expand Up @@ -133,6 +134,7 @@ go_test(
"//planner/core",
"//sessionctx",
"//sessionctx/variable",
"//sessiontxn",
"//statistics",
"//store/mockstore",
"//table",
Expand Down
1 change: 1 addition & 0 deletions sessionctx/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ go_library(

go_test(
name = "sessionctx_test",
timeout = "short",
srcs = [
"context_test.go",
"main_test.go",
Expand Down
1 change: 1 addition & 0 deletions sessionctx/binloginfo/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ go_library(

go_test(
name = "binloginfo_test",
timeout = "short",
srcs = [
"binloginfo_test.go",
"main_test.go",
Expand Down
5 changes: 5 additions & 0 deletions sessionctx/sessionstates/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,18 @@ go_library(

go_test(
name = "sessionstates_test",
timeout = "short",
srcs = ["session_states_test.go"],
deps = [
"//errno",
"//parser/mysql",
"//parser/terror",
"//server",
"//sessionctx/variable",
"//testkit",
"//types",
"//util/sem",
"@com_github_pingcap_errors//:errors",
"@com_github_stretchr_testify//require",
],
)
1 change: 1 addition & 0 deletions sessionctx/stmtctx/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ go_library(

go_test(
name = "stmtctx_test",
timeout = "short",
srcs = [
"main_test.go",
"stmtctx_test.go",
Expand Down
1 change: 1 addition & 0 deletions sessionctx/variable/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ go_library(

go_test(
name = "variable_test",
timeout = "short",
srcs = [
"main_test.go",
"mock_globalaccessor_test.go",
Expand Down
3 changes: 3 additions & 0 deletions sessiontxn/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,13 @@ go_library(
visibility = ["//visibility:public"],
deps = [
"//infoschema",
"//kv",
"//parser/ast",
"//sessionctx",
"//sessionctx/variable",
"//util/stringutil",
"@com_github_opentracing_opentracing_go//:opentracing-go",
"@com_github_pingcap_kvproto//pkg/kvrpcpb",
"@com_github_tikv_client_go_v2//oracle",
],
)
Expand Down
1 change: 1 addition & 0 deletions sessiontxn/isolation/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ go_library(
"//sessionctx/variable",
"//sessiontxn",
"//sessiontxn/staleread",
"//table/temptable",
"//util/logutil",
"@com_github_pingcap_errors//:errors",
"@com_github_tikv_client_go_v2//error",
Expand Down
1 change: 1 addition & 0 deletions sessiontxn/staleread/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ go_library(
"//errno",
"//expression",
"//infoschema",
"//kv",
"//parser/ast",
"//parser/mysql",
"//sessionctx",
Expand Down
1 change: 1 addition & 0 deletions statistics/handle/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ go_library(

go_test(
name = "handle_test",
timeout = "short",
srcs = [
"ddl_test.go",
"dump_test.go",
Expand Down
1 change: 1 addition & 0 deletions table/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ go_library(

go_test(
name = "table_test",
timeout = "short",
srcs = [
"column_test.go",
"main_test.go",
Expand Down
1 change: 1 addition & 0 deletions table/tables/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ go_library(

go_test(
name = "tables_test",
timeout = "short",
srcs = [
"cache_test.go",
"index_test.go",
Expand Down
1 change: 1 addition & 0 deletions tests/realtikvtest/sessiontest/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ load("@io_bazel_rules_go//go:def.bzl", "go_test")

go_test(
name = "sessiontest_test",
timeout = "short",
srcs = [
"main_test.go",
"retry_test.go",
Expand Down
1 change: 1 addition & 0 deletions util/admin/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ go_library(

go_test(
name = "admin_test",
timeout = "short",
srcs = [
"admin_integration_test.go",
"main_test.go",
Expand Down
1 change: 1 addition & 0 deletions util/arena/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ go_library(

go_test(
name = "arena_test",
timeout = "short",
srcs = [
"arena_test.go",
"main_test.go",
Expand Down
1 change: 1 addition & 0 deletions util/collate/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ go_library(

go_test(
name = "collate_test",
timeout = "short",
srcs = [
"collate_bench_test.go",
"collate_test.go",
Expand Down
1 change: 1 addition & 0 deletions util/ddl-checker/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ go_library(

go_test(
name = "ddl-checker_test",
timeout = "short",
srcs = ["executable_checker_test.go"],
embed = [":ddl-checker"],
deps = [
Expand Down
1 change: 1 addition & 0 deletions util/deadlockhistory/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ go_library(

go_test(
name = "deadlockhistory_test",
timeout = "short",
srcs = [
"deadlock_history_test.go",
"main_test.go",
Expand Down
1 change: 1 addition & 0 deletions util/disk/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ go_library(

go_test(
name = "disk_test",
timeout = "short",
srcs = [
"main_test.go",
"tempDir_test.go",
Expand Down

0 comments on commit 16df194

Please sign in to comment.