From a24611506443ebd0b553f58a78dfb0fe4ad72c94 Mon Sep 17 00:00:00 2001 From: Weizhen Wang Date: Tue, 14 Feb 2023 14:09:25 +0800 Subject: [PATCH] *: update bazel Signed-off-by: Weizhen Wang --- session/nontransactionaltest/BUILD.bazel | 21 +----------- session/sessiontest/BUILD.bazel | 43 +----------------------- session/temporarytabletest/BUILD.bazel | 25 +------------- 3 files changed, 3 insertions(+), 86 deletions(-) diff --git a/session/nontransactionaltest/BUILD.bazel b/session/nontransactionaltest/BUILD.bazel index 9ef94e5c12a7a..bb2ddf73e69e1 100644 --- a/session/nontransactionaltest/BUILD.bazel +++ b/session/nontransactionaltest/BUILD.bazel @@ -1,7 +1,7 @@ load("@io_bazel_rules_go//go:def.bzl", "go_test") go_test( - name = "nontransactional_test_test", + name = "nontransactionaltest_test", timeout = "short", srcs = [ "main_test.go", @@ -21,22 +21,3 @@ go_test( "@org_uber_go_goleak//:goleak", ], ) - -go_test( - name = "nontransactionaltest_test", - srcs = [ - "main_test.go", - "nontransactional_test.go", - ], - deps = [ - "//config", - "//testkit", - "//testkit/testmain", - "//testkit/testsetup", - "@com_github_pingcap_failpoint//:failpoint", - "@com_github_stretchr_testify//require", - "@com_github_tikv_client_go_v2//tikv", - "@com_github_tikv_client_go_v2//util", - "@org_uber_go_goleak//:goleak", - ], -) diff --git a/session/sessiontest/BUILD.bazel b/session/sessiontest/BUILD.bazel index 3856a27e92bf9..7c16c7f2d674e 100644 --- a/session/sessiontest/BUILD.bazel +++ b/session/sessiontest/BUILD.bazel @@ -1,7 +1,7 @@ load("@io_bazel_rules_go//go:def.bzl", "go_test") go_test( - name = "session_test", + name = "sessiontest_test", timeout = "short", srcs = [ "main_test.go", @@ -43,44 +43,3 @@ go_test( "@org_uber_go_goleak//:goleak", ], ) - -go_test( - name = "sessiontest_test", - srcs = [ - "main_test.go", - "session_test.go", - ], - deps = [ - "//config", - "//domain", - "//errno", - "//expression", - "//kv", - "//parser/ast", - "//parser/auth", - "//parser/format", - "//parser/model", - "//parser/mysql", - "//parser/terror", - "//planner/core", - "//privilege/privileges", - "//session", - "//sessionctx", - "//sessionctx/variable", - "//store/copr", - "//store/mockstore", - "//table/tables", - "//testkit", - "//testkit/testmain", - "//testkit/testsetup", - "//types", - "//util", - "//util/memory", - "//util/sqlexec", - "@com_github_pingcap_failpoint//:failpoint", - "@com_github_stretchr_testify//require", - "@com_github_tikv_client_go_v2//tikv", - "@com_github_tikv_client_go_v2//txnkv/transaction", - "@org_uber_go_goleak//:goleak", - ], -) diff --git a/session/temporarytabletest/BUILD.bazel b/session/temporarytabletest/BUILD.bazel index c281a16e22f2f..582ae5f27cf20 100644 --- a/session/temporarytabletest/BUILD.bazel +++ b/session/temporarytabletest/BUILD.bazel @@ -1,7 +1,7 @@ load("@io_bazel_rules_go//go:def.bzl", "go_test") go_test( - name = "temporarytable_test", + name = "temporarytabletest_test", timeout = "short", srcs = [ "main_test.go", @@ -25,26 +25,3 @@ go_test( "@org_uber_go_goleak//:goleak", ], ) - -go_test( - name = "temporarytabletest_test", - srcs = [ - "main_test.go", - "temporary_table_test.go", - ], - deps = [ - "//config", - "//domain", - "//errno", - "//kv", - "//parser/terror", - "//session", - "//sessionctx/variable", - "//testkit", - "//testkit/testmain", - "//testkit/testsetup", - "@com_github_stretchr_testify//require", - "@com_github_tikv_client_go_v2//tikv", - "@org_uber_go_goleak//:goleak", - ], -)