mirror of
https://github.com/fluencelabs/tendermint
synced 2025-05-25 12:11:22 +00:00
Fixup tests
This commit is contained in:
parent
2872df6634
commit
24cd2eba8e
@ -12,7 +12,7 @@ import (
|
||||
func TestBaseVerifier(t *testing.T) {
|
||||
assert := assert.New(t)
|
||||
|
||||
keys := genPrivKeys(4)
|
||||
keys := GenPrivKeys(4)
|
||||
// 20, 30, 40, 50 - the first 3 don't have 2/3, the last 3 do!
|
||||
vals := keys.ToValidators(20, 10)
|
||||
// and a Verifier based on our known set
|
||||
@ -20,7 +20,7 @@ func TestBaseVerifier(t *testing.T) {
|
||||
cert := NewBaseVerifier(chainID, 2, vals)
|
||||
|
||||
cases := []struct {
|
||||
keys privKeys
|
||||
keys PrivKeys
|
||||
vals *types.ValidatorSet
|
||||
height int64
|
||||
first, last int // who actually signs
|
||||
|
@ -48,7 +48,7 @@ func TestMultiProvider(t *testing.T) {
|
||||
func checkProvider(t *testing.T, p PersistentProvider, chainID, app string) {
|
||||
assert, require := assert.New(t), require.New(t)
|
||||
appHash := []byte(app)
|
||||
keys := genPrivKeys(5)
|
||||
keys := GenPrivKeys(5)
|
||||
count := 10
|
||||
|
||||
// Make a bunch of full commits.
|
||||
@ -113,7 +113,7 @@ func TestMultiLatestFullCommit(t *testing.T) {
|
||||
|
||||
chainID := "cache-best-height"
|
||||
appHash := []byte("01234567")
|
||||
keys := genPrivKeys(5)
|
||||
keys := GenPrivKeys(5)
|
||||
count := 10
|
||||
|
||||
// Set a bunch of full commits.
|
||||
|
@ -639,8 +639,8 @@ func (vals *ValidatorSet) VerifyCommit(chainID string, blockID BlockID, height i
|
||||
}
|
||||
|
||||
//-----------------
|
||||
// ErrTooMuchChange
|
||||
|
||||
// IsErrTooMuchChange
|
||||
func IsErrTooMuchChange(err error) bool {
|
||||
switch err_ := err.(type) {
|
||||
case cmn.Error:
|
||||
|
Loading…
x
Reference in New Issue
Block a user