JSON tests related changes (#4461)

* test functions take time.Now and other minor changes

* updated remaining test files

* Update validation_test.go

* fix typo

* go fmt

* import time

Co-authored-by: Marko <marbar3778@yahoo.com>
This commit is contained in:
Shivani Joshi
2020-02-28 09:57:00 +01:00
committed by GitHub
co-authored by Marko
parent 3f883bb80a
commit 78144306dd
11 changed files with 52 additions and 38 deletions
+3 -1
View File
@@ -97,7 +97,9 @@ func newBlockchainReactor(
lastBlockMeta.BlockID,
state.Validators,
privVals[0],
lastBlock.Header.ChainID)
lastBlock.Header.ChainID,
time.Now(),
)
if err != nil {
panic(err)
}
+4 -1
View File
@@ -6,6 +6,7 @@ import (
"sort"
"sync"
"testing"
"time"
"github.com/pkg/errors"
"github.com/stretchr/testify/assert"
@@ -494,7 +495,9 @@ func newReactorStore(
lastBlockMeta.BlockID,
state.Validators,
privVals[0],
lastBlock.Header.ChainID)
lastBlock.Header.ChainID,
time.Now(),
)
if err != nil {
panic(err)
}