Skip to content

Commit

Permalink
fix err check
Browse files Browse the repository at this point in the history
  • Loading branch information
Tjianke committed Mar 1, 2021
1 parent 06ca7eb commit 956ce9d
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions structure/structure_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,6 @@ func (s *testTxStructureSuite) TearDownSuite(c *C) {
func (s *testTxStructureSuite) TestString(c *C) {
txn, err := s.store.Begin()
c.Assert(err, IsNil)
defer func() {
// to fix: invalid txn
err = txn.Rollback()
c.Assert(err, NotNil)
}()

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

Expand Down Expand Up @@ -106,11 +101,6 @@ func (s *testTxStructureSuite) TestString(c *C) {
func (s *testTxStructureSuite) TestList(c *C) {
txn, err := s.store.Begin()
c.Assert(err, IsNil)
defer func() {
err = txn.Rollback()
// to fix: test for invalid txn
c.Assert(err, NotNil)
}()

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

Expand Down Expand Up @@ -218,11 +208,6 @@ func (s *testTxStructureSuite) TestList(c *C) {
func (s *testTxStructureSuite) TestHash(c *C) {
txn, err := s.store.Begin()
c.Assert(err, IsNil)
defer func() {
// to fix: invalid transaction
err := txn.Rollback()
c.Assert(err, NotNil)
}()

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

Expand Down

0 comments on commit 956ce9d

Please sign in to comment.