Skip to content

Commit

Permalink
*: simple code (pingcap#47737)
Browse files Browse the repository at this point in the history
  • Loading branch information
hawkingrei authored and wuhuizuo committed Apr 2, 2024
1 parent e84efd2 commit 443c38d
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion pkg/ddl/placement_policy_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -844,7 +844,7 @@ func TestCreateSchemaWithInfoPlacement(t *testing.T) {
}

func TestAlterRangePlacementPolicy(t *testing.T) {
store, _ := testkit.CreateMockStoreAndDomain(t)
store := testkit.CreateMockStore(t)
tk := testkit.NewTestKit(t, store)
tk.MustExec("create placement policy fiveReplicas followers=4")
tk.MustExec("alter range global placement policy fiveReplicas")
Expand Down
2 changes: 1 addition & 1 deletion pkg/executor/test/admintest/admin_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1772,7 +1772,7 @@ func TestAdminCheckTableErrorLocateForClusterIndex(t *testing.T) {
}

func TestAdminCheckTableErrorLocateBigTable(t *testing.T) {
store, _ := testkit.CreateMockStoreAndDomain(t)
store := testkit.CreateMockStore(t)

tk := testkit.NewTestKit(t, store)
tk.MustExec("use test")
Expand Down
4 changes: 2 additions & 2 deletions pkg/planner/core/plan_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -756,7 +756,7 @@ func TestIssue40535(t *testing.T) {
}

func TestIssue47445(t *testing.T) {
store, _ := testkit.CreateMockStoreAndDomain(t)
store := testkit.CreateMockStore(t)
tk := testkit.NewTestKit(t, store)
tk.MustExec("use test;")
tk.MustExec("CREATE TABLE golang1 ( `fcbpdt` CHAR (8) COLLATE utf8_general_ci NOT NULL, `fcbpsq` VARCHAR (20) COLLATE utf8_general_ci NOT NULL, `procst` char (4) COLLATE utf8_general_ci DEFAULT NULL,`cipstx` VARCHAR (105) COLLATE utf8_general_ci DEFAULT NULL, `cipsst` CHAR (4) COLLATE utf8_general_ci DEFAULT NULL, `dyngtg` VARCHAR(4) COLLATE utf8_general_ci DEFAULT NULL, `blncdt` VARCHAR (8) COLLATE utf8_general_ci DEFAULT NULL, PRIMARY KEY ( fcbpdt, fcbpsq ))")
Expand All @@ -772,7 +772,7 @@ func TestIssue47445(t *testing.T) {
}

func TestExplainValuesStatement(t *testing.T) {
store, _ := testkit.CreateMockStoreAndDomain(t)
store := testkit.CreateMockStore(t)
tk := testkit.NewTestKit(t, store)

tk.MustMatchErrMsg("EXPLAIN FORMAT = TRADITIONAL ((VALUES ROW ()) ORDER BY 1)", ".*Unknown table ''.*")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ func TestUnlockTheUnlockedTableWouldGenerateWarning(t *testing.T) {
}

func TestSkipLockALotOfPartitions(t *testing.T) {
store, _ := testkit.CreateMockStoreAndDomain(t)
store := testkit.CreateMockStore(t)
tk := testkit.NewTestKit(t, store)
tk.MustExec("set @@tidb_analyze_version = 1")
tk.MustExec("use test")
Expand Down

0 comments on commit 443c38d

Please sign in to comment.