diff options
author | Mission Liao <mission.liao@dexon.org> | 2019-01-22 14:14:31 +0800 |
---|---|---|
committer | Mission Liao <mission.liao@dexon.org> | 2019-01-28 16:23:18 +0800 |
commit | b1e1bc622db0ed40639dc46297155c0efb69a6d7 (patch) | |
tree | e55d5b99a25d2ce6b8f8960d462d7980435968c0 | |
parent | be16995ea4b7a0c97dc141aad28ab0a466335143 (diff) | |
download | dexon-consensus-b1e1bc622db0ed40639dc46297155c0efb69a6d7.tar.gz dexon-consensus-b1e1bc622db0ed40639dc46297155c0efb69a6d7.tar.zst dexon-consensus-b1e1bc622db0ed40639dc46297155c0efb69a6d7.zip |
Fix agreemnt test: there would be no forward signal on skip
-rw-r--r-- | core/agreement_test.go | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/core/agreement_test.go b/core/agreement_test.go index 12fbba1..7e6d43c 100644 --- a/core/agreement_test.go +++ b/core/agreement_test.go @@ -360,18 +360,6 @@ func (s *AgreementTestSuite) TestFastForwardCond1() { s.Equal(uint64(2), a.data.lockIter) s.Equal(uint64(3), a.data.period) - // No fast forward if vote.BlockHash == SKIP - a.data.lockIter = 6 - a.data.period = 8 - a.data.lockValue = types.NullBlockHash - s.Require().NoError(a.processSignal(s.prepareSignal( - agrPkg.SignalForward, types.VotePreCom, types.SkipBlockHash, 7))) - select { - case <-a.done(): - s.FailNow("Unexpected fast forward.") - default: - } - // No fast forward if lockValue == vote.BlockHash. a.data.lockIter = 11 a.data.period = 13 @@ -401,16 +389,6 @@ func (s *AgreementTestSuite) TestFastForwardCond2() { s.Equal(hash, a.data.lockValue) s.Equal(uint64(2), a.data.lockIter) s.Equal(uint64(2), a.data.period) - - // No fast forward if vote.BlockHash == SKIP - a.data.period = 6 - s.Require().NoError(a.processSignal(s.prepareSignal( - agrPkg.SignalForward, types.VotePreCom, types.SkipBlockHash, 7))) - select { - case <-a.done(): - s.FailNow("Unexpected fast forward.") - default: - } } func (s *AgreementTestSuite) TestFastForwardCond3() { |