From 9bc3941d4d07d3eadbff0db75af2a77b1936864b Mon Sep 17 00:00:00 2001 From: Miya Chen Date: Mon, 28 Aug 2017 11:05:04 +0800 Subject: [PATCH] tests: fix consensus progress test fail --- tests/general_consensus_test.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/general_consensus_test.go b/tests/general_consensus_test.go index 6c073d56..fdaaee8c 100644 --- a/tests/general_consensus_test.go +++ b/tests/general_consensus_test.go @@ -75,7 +75,10 @@ var _ = Describe("TFS-01: General consensus", func() { go func(geth container.Ethereum) { c := geth.NewClient() lastBlockTime := int64(0) - for i := 1; i <= targetBlockHeight; i++ { + // The reason to verify block period from block#2 is that + // the block period from block#1 to block#2 might take long time due to + // encounter several round changes at the beginning of the consensus progress. + for i := 2; i <= targetBlockHeight; i++ { header, err := c.HeaderByNumber(context.Background(), big.NewInt(int64(i))) if err != nil { errc <- err