consensus: move test use only var/func to test(#17004)

This commit is contained in:
Wenbiao Zheng
2018-07-24 08:14:15 +08:00
committed by Felix Lange
parent ae674a3660
commit f6206efe5b
4 changed files with 11 additions and 11 deletions

View File

@ -360,7 +360,7 @@ func TestVoting(t *testing.T) {
for j, vote := range tt.votes {
headers[j] = &types.Header{
Number: big.NewInt(int64(j) + 1),
Time: big.NewInt(int64(j) * int64(blockPeriod)),
Time: big.NewInt(int64(j) * 15),
Coinbase: accounts.address(vote.voted),
Extra: make([]byte, extraVanity+extraSeal),
}