diff options
author | Mission Liao <mission.liao@dexon.org> | 2018-09-20 09:09:37 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-09-20 09:09:37 +0800 |
commit | 421d72b2d796195178104a0eb1dedf319ba8664c (patch) | |
tree | f32f15c167989905494eca1891c3240b80dac1d6 /integration_test/stats_test.go | |
parent | 37f117d35c6617e1944d45e001e03813a6a278ed (diff) | |
download | tangerine-consensus-421d72b2d796195178104a0eb1dedf319ba8664c.tar tangerine-consensus-421d72b2d796195178104a0eb1dedf319ba8664c.tar.gz tangerine-consensus-421d72b2d796195178104a0eb1dedf319ba8664c.tar.bz2 tangerine-consensus-421d72b2d796195178104a0eb1dedf319ba8664c.tar.lz tangerine-consensus-421d72b2d796195178104a0eb1dedf319ba8664c.tar.xz tangerine-consensus-421d72b2d796195178104a0eb1dedf319ba8664c.tar.zst tangerine-consensus-421d72b2d796195178104a0eb1dedf319ba8664c.zip |
Rename validator* to node* (#120)
Diffstat (limited to 'integration_test/stats_test.go')
-rw-r--r-- | integration_test/stats_test.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/integration_test/stats_test.go b/integration_test/stats_test.go index 8816e8c..54c827d 100644 --- a/integration_test/stats_test.go +++ b/integration_test/stats_test.go @@ -21,13 +21,13 @@ func (s *EventStatsTestSuite) TestCalculate() { req = s.Require() ) - apps, dbs, validators, err := PrepareValidators( + apps, dbs, nodes, err := PrepareNodes( 7, networkLatency, proposingLatency) req.Nil(err) sch := test.NewScheduler(test.NewStopByConfirmedBlocks(50, apps, dbs)) now := time.Now().UTC() - for vID, v := range validators { + for vID, v := range nodes { sch.RegisterEventHandler(vID, v) req.Nil(sch.Seed(NewProposeBlockEvent(vID, now))) } @@ -43,8 +43,8 @@ func (s *EventStatsTestSuite) TestCalculate() { req.True(stats.All.DeliveredBlockCount >= 350) req.Equal(stats.All.ProposingLatency, 300*time.Millisecond) req.Equal(stats.All.ReceivingLatency, 100*time.Millisecond) - // Check statistics for each validator. - for _, vStats := range stats.ByValidator { + // Check statistics for each node. + for _, vStats := range stats.ByNode { req.True(vStats.ProposedBlockCount > 50) req.True(vStats.ReceivedBlockCount > 50) req.True(vStats.StronglyAckedBlockCount > 50) |