Skip to content

Commit

Permalink
ddl: Stabilized TestRemovePartitioningAutoIDs test. (pingcap#56436)
Browse files Browse the repository at this point in the history
  • Loading branch information
mjonss authored Oct 8, 2024
1 parent c3a85be commit df821b9
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pkg/ddl/tests/partition/db_partition_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3104,6 +3104,7 @@ func TestRemovePartitioningAutoIDs(t *testing.T) {
tk1 := testkit.NewTestKit(t, store)
tk2 := testkit.NewTestKit(t, store)
tk3 := testkit.NewTestKit(t, store)
tk4 := testkit.NewTestKit(t, store)

tk1.MustExec(`create schema ` + dbName)
tk1.MustExec(`use ` + dbName)
Expand All @@ -3117,8 +3118,6 @@ func TestRemovePartitioningAutoIDs(t *testing.T) {

waitFor := func(col int, tableName, s string) {
for {
tk4 := testkit.NewTestKit(t, store)
tk4.MustExec(`use test`)
sql := `admin show ddl jobs where db_name = '` + strings.ToLower(dbName) + `' and table_name = '` + tableName + `' and job_type = 'alter table remove partitioning'`
res := tk4.MustQuery(sql).Rows()
if len(res) == 1 && res[0][col] == s {
Expand Down

0 comments on commit df821b9

Please sign in to comment.