Fixup tests

This commit is contained in:
Zaki Manian 2019-07-07 21:47:39 -07:00
parent 2872df6634
commit 24cd2eba8e
No known key found for this signature in database
GPG Key ID: 5797A6DC2D9055DA
3 changed files with 5 additions and 5 deletions

View File

@ -12,7 +12,7 @@ import (
func TestBaseVerifier(t *testing.T) { func TestBaseVerifier(t *testing.T) {
assert := assert.New(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! // 20, 30, 40, 50 - the first 3 don't have 2/3, the last 3 do!
vals := keys.ToValidators(20, 10) vals := keys.ToValidators(20, 10)
// and a Verifier based on our known set // and a Verifier based on our known set
@ -20,7 +20,7 @@ func TestBaseVerifier(t *testing.T) {
cert := NewBaseVerifier(chainID, 2, vals) cert := NewBaseVerifier(chainID, 2, vals)
cases := []struct { cases := []struct {
keys privKeys keys PrivKeys
vals *types.ValidatorSet vals *types.ValidatorSet
height int64 height int64
first, last int // who actually signs first, last int // who actually signs

View File

@ -48,7 +48,7 @@ func TestMultiProvider(t *testing.T) {
func checkProvider(t *testing.T, p PersistentProvider, chainID, app string) { func checkProvider(t *testing.T, p PersistentProvider, chainID, app string) {
assert, require := assert.New(t), require.New(t) assert, require := assert.New(t), require.New(t)
appHash := []byte(app) appHash := []byte(app)
keys := genPrivKeys(5) keys := GenPrivKeys(5)
count := 10 count := 10
// Make a bunch of full commits. // Make a bunch of full commits.
@ -113,7 +113,7 @@ func TestMultiLatestFullCommit(t *testing.T) {
chainID := "cache-best-height" chainID := "cache-best-height"
appHash := []byte("01234567") appHash := []byte("01234567")
keys := genPrivKeys(5) keys := GenPrivKeys(5)
count := 10 count := 10
// Set a bunch of full commits. // Set a bunch of full commits.

View File

@ -639,8 +639,8 @@ func (vals *ValidatorSet) VerifyCommit(chainID string, blockID BlockID, height i
} }
//----------------- //-----------------
// ErrTooMuchChange
// IsErrTooMuchChange
func IsErrTooMuchChange(err error) bool { func IsErrTooMuchChange(err error) bool {
switch err_ := err.(type) { switch err_ := err.(type) {
case cmn.Error: case cmn.Error: