diff options
author | Jimmy Hu <jimmy.hu@dexon.org> | 2018-11-30 17:28:22 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-11-30 17:28:22 +0800 |
commit | 81c3d2d4446b5daee09529f58bc17cad3284edbf (patch) | |
tree | 1afdfc1ea5646ea558fc66c9493c3a29a38ff168 /core/consensus_test.go | |
parent | 043e340017df85ec058e1a22645c57272cd45772 (diff) | |
download | tangerine-consensus-81c3d2d4446b5daee09529f58bc17cad3284edbf.tar tangerine-consensus-81c3d2d4446b5daee09529f58bc17cad3284edbf.tar.gz tangerine-consensus-81c3d2d4446b5daee09529f58bc17cad3284edbf.tar.bz2 tangerine-consensus-81c3d2d4446b5daee09529f58bc17cad3284edbf.tar.lz tangerine-consensus-81c3d2d4446b5daee09529f58bc17cad3284edbf.tar.xz tangerine-consensus-81c3d2d4446b5daee09529f58bc17cad3284edbf.tar.zst tangerine-consensus-81c3d2d4446b5daee09529f58bc17cad3284edbf.zip |
core: Fix stuffs (#351)
* Use non-blocking app in consensus core
* Prevent panic when getting nextHeight
Diffstat (limited to 'core/consensus_test.go')
-rw-r--r-- | core/consensus_test.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/core/consensus_test.go b/core/consensus_test.go index 7d4d6b4..dab5440 100644 --- a/core/consensus_test.go +++ b/core/consensus_test.go @@ -420,6 +420,9 @@ func (s *ConsensusTestSuite) TestSimpleDeliverBlock() { req.Equal(t, app.Delivered[b11.Hash].ConsensusTime) } for _, obj := range objs { + if nb, ok := obj.con.app.(*nonBlocking); ok { + nb.wait() + } verify(obj.app) } } |