diff --git a/ddl/serial_test.go b/ddl/serial_test.go index d99acc8b1db2e..6b02981661cff 100644 --- a/ddl/serial_test.go +++ b/ddl/serial_test.go @@ -759,7 +759,7 @@ func (s *testSerialSuite) TestTruncateTableUpdateSchemaVersionErr(c *C) { tk.MustExec("create table t (a int)") _, err = tk.Exec("truncate table t") c.Assert(err, NotNil) - c.Assert(err.Error(), Equals, "[ddl:-1]DDL job rollback, error msg: mock update version error") + c.Assert(err.Error(), Equals, "[ddl:8214]Cancelled DDL job") // Disable fail point. c.Assert(failpoint.Disable("github.com/pingcap/tidb/ddl/mockTruncateTableUpdateVersionError"), IsNil) tk.MustExec("truncate table t")