Skip to content
This repository has been archived by the owner on Aug 24, 2022. It is now read-only.

Commit

Permalink
fix: flaky test reporting invalid header time (#250)
Browse files Browse the repository at this point in the history
* fix #241 : flaky test reporting invalid header time
Backported from v0.34.10 fix at tendermint/tendermint@4b99502
  • Loading branch information
daeMOn63 authored Apr 30, 2021
1 parent cd68d4d commit c0aea7a
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 4 deletions.
4 changes: 0 additions & 4 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,6 @@ on:
- release/*
- collaborative-learning
pull_request:
branches:
- master
- release/*
- collaborative-learning

jobs:

Expand Down
18 changes: 18 additions & 0 deletions config/toml.go
Original file line number Diff line number Diff line change
Expand Up @@ -449,6 +449,24 @@ func ResetTestRootWithChainID(testName string, chainID string) *Config {
var testGenesisFmt = `{
"genesis_time": "2018-10-10T08:20:13.695936996Z",
"chain_id": "%s",
"consensus_params": {
"block": {
"max_bytes": "22020096",
"max_gas": "-1",
"time_iota_ms": "10"
},
"evidence": {
"max_age_num_blocks": "100000",
"max_age_duration": "172800000000000",
"max_num": 50
},
"validator": {
"pub_key_types": [
"ed25519"
]
},
"version": {}
},
"validators": [
{
"pub_key": {
Expand Down
1 change: 1 addition & 0 deletions state/state_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -939,6 +939,7 @@ func TestConsensusParamsChangesSaveLoad(t *testing.T) {
for i := 1; i < N+1; i++ {
params[i] = *types.DefaultConsensusParams()
params[i].Block.MaxBytes += int64(i)
params[i].Block.TimeIotaMs = 10
}

// Build the params history by running updateState
Expand Down

0 comments on commit c0aea7a

Please sign in to comment.