From 09a0ab086cdafcb27b74e6346efdc8e96ca8145d Mon Sep 17 00:00:00 2001 From: Wei-Ning Huang Date: Fri, 10 Aug 2018 15:12:56 +0800 Subject: core: update governance interface and move K into config (#40) --- core/consensus_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'core/consensus_test.go') diff --git a/core/consensus_test.go b/core/consensus_test.go index 1544818..beeb1a7 100644 --- a/core/consensus_test.go +++ b/core/consensus_test.go @@ -53,7 +53,7 @@ func (s *ConsensusTestSuite) prepareGenesisBlock( return block } -func (s *ConsensusTestSuite) prepareConsensus(gov *test.Gov) ( +func (s *ConsensusTestSuite) prepareConsensus(gov *test.Governance) ( *test.App, *Consensus) { app := test.NewApp() @@ -77,7 +77,7 @@ func (s *ConsensusTestSuite) TestSimpleDeliverBlock() { // This test case only works for Total Ordering with K=0. var ( minInterval = 50 * time.Millisecond - gov = test.NewGov(4, 1000) + gov = test.NewGovernance(4, 1000) req = s.Require() validators []types.ValidatorID ) @@ -262,7 +262,7 @@ func (s *ConsensusTestSuite) TestPrepareBlock() { // - Make sure Consensus.PrepareBlock would only attempt to // ack the prepared block. var ( - gov = test.NewGov(4, 1000) + gov = test.NewGovernance(4, 1000) req = s.Require() validators []types.ValidatorID ) -- cgit v1.2.3