diff options
author | Jimmy Hu <jimmy.hu@dexon.org> | 2018-10-25 16:59:30 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-10-25 16:59:30 +0800 |
commit | 04eeac10e6c690e62ae57ef0e2bdf4618b8782d1 (patch) | |
tree | e0b95167d1f42a9304fb9e924378464edbb517e9 /core/lattice-data_test.go | |
parent | 233f1e8de99bf2a0023f05d1c67e48cc770621df (diff) | |
download | dexon-consensus-04eeac10e6c690e62ae57ef0e2bdf4618b8782d1.tar.gz dexon-consensus-04eeac10e6c690e62ae57ef0e2bdf4618b8782d1.tar.zst dexon-consensus-04eeac10e6c690e62ae57ef0e2bdf4618b8782d1.zip |
core: lattice sync (#257)
Diffstat (limited to 'core/lattice-data_test.go')
-rw-r--r-- | core/lattice-data_test.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/core/lattice-data_test.go b/core/lattice-data_test.go index 64767e1..b92ed7a 100644 --- a/core/lattice-data_test.go +++ b/core/lattice-data_test.go @@ -196,7 +196,7 @@ func (s *LatticeDataTestSuite) TestSanityCheck() { s.hashBlock(b) err := data.sanityCheck(b) req.NotNil(err) - req.Equal(expectedErr.Error(), err.Error()) + req.IsType(expectedErr, err) } // Non-genesis block with no ack, should get error. check(ErrNotAckParent, &types.Block{ @@ -245,7 +245,7 @@ func (s *LatticeDataTestSuite) TestSanityCheck() { }, }) // Acking block doesn't exists. - check(ErrAckingBlockNotExists, &types.Block{ + check(&ErrAckingBlockNotExists{}, &types.Block{ ParentHash: blocks[1][0].Hash, Position: types.Position{ ChainID: 1, @@ -258,7 +258,7 @@ func (s *LatticeDataTestSuite) TestSanityCheck() { Timestamp: time.Now().UTC(), }) // Parent block on different chain. - check(ErrAckingBlockNotExists, &types.Block{ + check(&ErrAckingBlockNotExists{}, &types.Block{ ParentHash: blocks[1][0].Hash, Position: types.Position{ ChainID: 2, |