Skip to content

Commit

Permalink
structure: fix err check (pingcap#23003)
Browse files Browse the repository at this point in the history
  • Loading branch information
Tjianke authored Mar 1, 2021
1 parent dc9ceb4 commit bff0e7e
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions structure/structure_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@ func (s *testTxStructureSuite) TearDownSuite(c *C) {
func (s *testTxStructureSuite) TestString(c *C) {
txn, err := s.store.Begin()
c.Assert(err, IsNil)
defer txn.Rollback()

tx := structure.NewStructure(txn, txn, []byte{0x00})

Expand Down Expand Up @@ -102,7 +101,6 @@ func (s *testTxStructureSuite) TestString(c *C) {
func (s *testTxStructureSuite) TestList(c *C) {
txn, err := s.store.Begin()
c.Assert(err, IsNil)
defer txn.Rollback()

tx := structure.NewStructure(txn, txn, []byte{0x00})

Expand Down Expand Up @@ -210,7 +208,6 @@ func (s *testTxStructureSuite) TestList(c *C) {
func (s *testTxStructureSuite) TestHash(c *C) {
txn, err := s.store.Begin()
c.Assert(err, IsNil)
defer txn.Rollback()

tx := structure.NewStructure(txn, txn, []byte{0x00})

Expand Down

0 comments on commit bff0e7e

Please sign in to comment.