aboutsummaryrefslogtreecommitdiffstats
path: root/core/compaction-chain_test.go
diff options
context:
space:
mode:
authorJimmy Hu <jimmy.hu@dexon.org>2018-10-17 19:06:40 +0800
committerGitHub <noreply@github.com>2018-10-17 19:06:40 +0800
commit29f38589a29e434282a783433d9fbb565ce4231b (patch)
treede7c6ffb73580689fc066e98221c45ef0b0694a4 /core/compaction-chain_test.go
parent21ab1ac7be6e88b88f75b10eb83d409bc0322254 (diff)
downloaddexon-consensus-29f38589a29e434282a783433d9fbb565ce4231b.tar
dexon-consensus-29f38589a29e434282a783433d9fbb565ce4231b.tar.gz
dexon-consensus-29f38589a29e434282a783433d9fbb565ce4231b.tar.bz2
dexon-consensus-29f38589a29e434282a783433d9fbb565ce4231b.tar.lz
dexon-consensus-29f38589a29e434282a783433d9fbb565ce4231b.tar.xz
dexon-consensus-29f38589a29e434282a783433d9fbb565ce4231b.tar.zst
dexon-consensus-29f38589a29e434282a783433d9fbb565ce4231b.zip
core: Some sync functions (#220)
Diffstat (limited to 'core/compaction-chain_test.go')
-rw-r--r--core/compaction-chain_test.go5
1 files changed, 4 insertions, 1 deletions
diff --git a/core/compaction-chain_test.go b/core/compaction-chain_test.go
index 0da0924..6931674 100644
--- a/core/compaction-chain_test.go
+++ b/core/compaction-chain_test.go
@@ -22,6 +22,7 @@ import (
"time"
"github.com/dexon-foundation/dexon-consensus-core/common"
+ "github.com/dexon-foundation/dexon-consensus-core/core/test"
"github.com/dexon-foundation/dexon-consensus-core/core/types"
"github.com/stretchr/testify/suite"
)
@@ -34,7 +35,9 @@ func (s *CompactionChainTestSuite) SetupTest() {
}
func (s *CompactionChainTestSuite) newCompactionChain() *compactionChain {
- return newCompactionChain()
+ gov, err := test.NewGovernance(4, 100*time.Millisecond)
+ s.Require().NoError(err)
+ return newCompactionChain(gov)
}
func (s *CompactionChainTestSuite) generateBlocks(