Skip to content

Commit

Permalink
*: simple code
Browse files Browse the repository at this point in the history
Signed-off-by: Weizhen Wang <wangweizhen@pingcap.com>
  • Loading branch information
hawkingrei committed Oct 18, 2023
1 parent 1c18555 commit 44eb1fa
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 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
2 changes: 1 addition & 1 deletion pkg/planner/core/plan_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 44eb1fa

Please sign in to comment.