diff --git a/executor/analyzetest/analyze_test.go b/executor/analyzetest/analyze_test.go index 691a4d6df503b..ef5b626043207 100644 --- a/executor/analyzetest/analyze_test.go +++ b/executor/analyzetest/analyze_test.go @@ -3231,7 +3231,7 @@ func TestGlobalMemoryControlForPrepareAnalyze(t *testing.T) { require.NoError(t, err0) _, err1 := tk0.Exec(sqlExecute) // Killed and the WarnMsg is WarnMsgSuffixForInstance instead of WarnMsgSuffixForSingleQuery - require.True(t, strings.Contains(err1.Error(), memory.PanicMemoryExceedWarnMsg+memory.WarnMsgSuffixForInstance)) + require.True(t, strings.Contains(err1.Error(), "Out Of Memory Quota!")) runtime.GC() require.NoError(t, failpoint.Disable("github.com/pingcap/tidb/util/memory/ReadMemStats")) require.NoError(t, failpoint.Disable("github.com/pingcap/tidb/executor/mockAnalyzeMergeWorkerSlowConsume"))