diff --git a/session/session_test.go b/session/session_test.go index 42378b536b8c2..4357832d450b1 100644 --- a/session/session_test.go +++ b/session/session_test.go @@ -3907,6 +3907,7 @@ func (s *testSessionSerialSuite) TestDoDDLJobQuit(c *C) { func (s *testBackupRestoreSuite) TestBackupAndRestore(c *C) { // only run BR SQL integration test with tikv store. + // TODO move this test to BR integration tests. if *withTiKV { cfg := config.GetGlobalConfig() cfg.Store = "tikv" @@ -3928,7 +3929,7 @@ func (s *testBackupRestoreSuite) TestBackupAndRestore(c *C) { tmpDir := path.Join(os.TempDir(), "bk1") os.RemoveAll(tmpDir) // backup database to tmp dir - tk.MustQuery("backup database * to 'local://" + tmpDir + "'") + tk.MustQuery("backup database br to 'local://" + tmpDir + "'") // remove database for recovery tk.MustExec("drop database br") @@ -3939,7 +3940,6 @@ func (s *testBackupRestoreSuite) TestBackupAndRestore(c *C) { tk.MustExec("use br") tk.MustQuery("select count(*) from t1").Check(testkit.Rows("3")) tk.MustExec("drop database br") - tk.MustExec("drop database br02") } }