diff options
author | Mission Liao <mission.liao@dexon.org> | 2019-03-16 10:07:08 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-03-16 10:07:08 +0800 |
commit | 50c9419ba04ed44854fdb1afc1ef2e865be9876f (patch) | |
tree | 2acafd84bdb61d54da5621c29c3914986df45b65 /integration_test/consensus_test.go | |
parent | b02fa5ee430cff9dafc9d9c399099a88d554a083 (diff) | |
download | tangerine-consensus-50c9419ba04ed44854fdb1afc1ef2e865be9876f.tar.gz tangerine-consensus-50c9419ba04ed44854fdb1afc1ef2e865be9876f.tar.zst tangerine-consensus-50c9419ba04ed44854fdb1afc1ef2e865be9876f.zip |
core, syncer: integrate utils.RoundEvent (#490)
Diffstat (limited to 'integration_test/consensus_test.go')
-rw-r--r-- | integration_test/consensus_test.go | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/integration_test/consensus_test.go b/integration_test/consensus_test.go index 5131465..70e6c1f 100644 --- a/integration_test/consensus_test.go +++ b/integration_test/consensus_test.go @@ -180,7 +180,7 @@ func (s *ConsensusTestSuite) syncBlocksWithSomeNode( } syncerHeight = b.Finalization.Height + 1 compactionChainBlocks = append(compactionChainBlocks, &b) - if len(compactionChainBlocks) >= 100 { + if len(compactionChainBlocks) >= 20 { if syncBlocks() { break } @@ -340,9 +340,9 @@ func (s *ConsensusTestSuite) TestSync() { req = s.Require() peerCount = 4 dMoment = time.Now().UTC() - untilRound = uint64(5) - stopRound = uint64(3) - aliveRound = uint64(1) + untilRound = uint64(7) + stopRound = uint64(5) + aliveRound = uint64(4) errChan = make(chan error, 100) ) prvKeys, pubKeys, err := test.NewKeys(peerCount) @@ -442,7 +442,7 @@ ReachAlive: select { case <-runnerCtx.Done(): break SyncLoop - case <-time.After(2 * time.Second): + case <-time.After(4 * time.Second): } } }() |