Skip to content

Commit

Permalink
fix: backup system table
Browse files Browse the repository at this point in the history
  • Loading branch information
3pointer committed Aug 5, 2021
1 parent fbfeee1 commit 479dd2b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions session/session_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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")
Expand All @@ -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")
}
}

Expand Down

0 comments on commit 479dd2b

Please sign in to comment.