Skip to content

Commit

Permalink
partition: fix unstable test TestExchangePartitionStates (pingcap#46816)
Browse files Browse the repository at this point in the history
  • Loading branch information
jiyfhust authored Sep 14, 2023
1 parent ae3f595 commit 82c3af1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions table/tables/test/partition/partition_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -751,6 +751,8 @@ func TestExchangePartitionStates(t *testing.T) {
}
gotime.Sleep(50 * gotime.Millisecond)
}
// Sleep 50ms to wait load InforSchema finish, issue #46815.
gotime.Sleep(50 * gotime.Millisecond)
}
waitFor("t", "write only", 4)
tk3.MustExec(`BEGIN`)
Expand Down Expand Up @@ -848,6 +850,8 @@ func TestAddKeyPartitionStates(t *testing.T) {
}
gotime.Sleep(10 * gotime.Millisecond)
}
// Sleep 50ms to wait load InforSchema finish.
gotime.Sleep(50 * gotime.Millisecond)
}
waitFor(4, "delete only")
tk3.MustExec(`BEGIN`)
Expand Down

0 comments on commit 82c3af1

Please sign in to comment.