Skip to content

Commit

Permalink
statistics: fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Rustin170506 committed Sep 19, 2023
1 parent ae220a2 commit 3f8580b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ func TestLockAndUnlockPartitionStatsRepeatedly(t *testing.T) {
// Lock the partition again and check the warning.
tk.MustExec("lock stats t partition p0")
tk.MustQuery("show warnings").Check(testkit.Rows(
"Warning 1105 skip locking locked partitions of table test.t: p0",
"Warning 1105 skip locking locked partition of table test.t: p0",
))

// Unlock the partition.
Expand All @@ -160,7 +160,7 @@ func TestLockAndUnlockPartitionStatsRepeatedly(t *testing.T) {
// Unlock the partition again and check the warning.
tk.MustExec("unlock stats t partition p0")
tk.MustQuery("show warnings").Check(testkit.Rows(
"Warning 1105 skip unlocking unlocked partitions of table test.t: p0",
"Warning 1105 skip unlocking unlocked partition of table test.t: p0",
))
}

Expand Down
2 changes: 1 addition & 1 deletion statistics/handle/lockstats/lock_stats_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -239,5 +239,5 @@ func TestAddLockedTables(t *testing.T) {
pidAndNames,
)
require.NoError(t, err)
require.Equal(t, "skip locking locked partitions: test.t1, other partitions locked successfully", msg)
require.Equal(t, "skip locking locked tables: test.t1, other tables locked successfully", msg)
}

0 comments on commit 3f8580b

Please sign in to comment.