diff options
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( |