aboutsummaryrefslogtreecommitdiffstats
path: root/core/consensus_test.go
diff options
context:
space:
mode:
authorJimmy Hu <jimmy.hu@dexon.org>2018-11-30 17:28:22 +0800
committerGitHub <noreply@github.com>2018-11-30 17:28:22 +0800
commit81c3d2d4446b5daee09529f58bc17cad3284edbf (patch)
tree1afdfc1ea5646ea558fc66c9493c3a29a38ff168 /core/consensus_test.go
parent043e340017df85ec058e1a22645c57272cd45772 (diff)
downloadtangerine-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.go3
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)
}
}