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

fix: flaky test reporting invalid header time #250

Merged
merged 2 commits into from
Apr 30, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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