Skip to content

Commit

Permalink
resolve conflict
Browse files Browse the repository at this point in the history
  • Loading branch information
3pointer committed Jun 2, 2022
1 parent 5da1655 commit 1d62b7d
Showing 1 changed file with 2 additions and 18 deletions.
20 changes: 2 additions & 18 deletions br/pkg/backup/schema_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -100,19 +100,11 @@ func (s *testBackupSchemaSuite) TestBuildBackupRangeAndSchema(c *C) {

// Table t1 is not exist.
testFilter, err := filter.Parse([]string{"test.t1"})
<<<<<<< HEAD
c.Assert(err, IsNil)
_, backupSchemas, err := backup.BuildBackupRangeAndSchema(
s.mock.Storage, testFilter, math.MaxUint64)
c.Assert(err, IsNil)
c.Assert(backupSchemas, IsNil)
=======
require.NoError(t, err)
_, backupSchemas, _, err := backup.BuildBackupRangeAndSchema(
m.Storage, testFilter, math.MaxUint64, false)
require.NoError(t, err)
require.NotNil(t, backupSchemas)
>>>>>>> 9339955f0... backup: backup empty databases (#34385)
c.Assert(backupSchemas, NotNil)

// Database is not exist.
fooFilter, err := filter.Parse([]string{"foo.t1"})
Expand All @@ -125,19 +117,11 @@ func (s *testBackupSchemaSuite) TestBuildBackupRangeAndSchema(c *C) {
// Empty database.
// Filter out system tables manually.
noFilter, err := filter.Parse([]string{"*.*", "!mysql.*"})
<<<<<<< HEAD
c.Assert(err, IsNil)
_, backupSchemas, err = backup.BuildBackupRangeAndSchema(
s.mock.Storage, noFilter, math.MaxUint64)
c.Assert(err, IsNil)
c.Assert(backupSchemas, IsNil)
=======
require.NoError(t, err)
_, backupSchemas, _, err = backup.BuildBackupRangeAndSchema(
m.Storage, noFilter, math.MaxUint64, false)
require.NoError(t, err)
require.NotNil(t, backupSchemas)
>>>>>>> 9339955f0... backup: backup empty databases (#34385)
c.Assert(backupSchemas, NotNil)

tk.MustExec("use test")
tk.MustExec("drop table if exists t1;")
Expand Down

0 comments on commit 1d62b7d

Please sign in to comment.