Skip to content

Commit

Permalink
lightning: add complex unit tests for lightning post-import conflict …
Browse files Browse the repository at this point in the history
…detection "replace" mode (#48514)

ref #45774
  • Loading branch information
lyzx2001 committed Nov 22, 2023
1 parent 4bbd56b commit c467718
Show file tree
Hide file tree
Showing 2 changed files with 805 additions and 2 deletions.
13 changes: 11 additions & 2 deletions br/pkg/lightning/errormanager/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -34,22 +34,31 @@ go_library(
go_test(
name = "errormanager_test",
timeout = "short",
srcs = ["errormanager_test.go"],
srcs = [
"errormanager_test.go",
"resolveconflict_test.go",
],
embed = [":errormanager"],
flaky = True,
shard_count = 6,
shard_count = 10,
deps = [
"//br/pkg/lightning/backend/encode",
"//br/pkg/lightning/backend/kv",
"//br/pkg/lightning/config",
"//br/pkg/lightning/log",
"//br/pkg/utils",
"//pkg/ddl",
"//pkg/parser",
"//pkg/parser/ast",
"//pkg/parser/model",
"//pkg/parser/mysql",
"//pkg/sessionctx/variable",
"//pkg/table/tables",
"//pkg/types",
"//pkg/util/mock",
"@com_github_data_dog_go_sqlmock//:go-sqlmock",
"@com_github_stretchr_testify//require",
"@com_github_tikv_client_go_v2//error",
"@org_uber_go_atomic//:atomic",
],
)
Loading

0 comments on commit c467718

Please sign in to comment.