diff options
author | Jimmy Hu <jimmy.hu@dexon.org> | 2018-10-17 19:06:40 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-10-17 19:06:40 +0800 |
commit | 29f38589a29e434282a783433d9fbb565ce4231b (patch) | |
tree | de7c6ffb73580689fc066e98221c45ef0b0694a4 /core/compaction-chain_test.go | |
parent | 21ab1ac7be6e88b88f75b10eb83d409bc0322254 (diff) | |
download | tangerine-consensus-29f38589a29e434282a783433d9fbb565ce4231b.tar.gz tangerine-consensus-29f38589a29e434282a783433d9fbb565ce4231b.tar.zst tangerine-consensus-29f38589a29e434282a783433d9fbb565ce4231b.zip |
core: Some sync functions (#220)
Diffstat (limited to 'core/compaction-chain_test.go')
-rw-r--r-- | core/compaction-chain_test.go | 5 |
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( |