Browse Source

minor fixes - tests pass

pull/1184/head
Ethan Buchman 7 years ago
parent
commit
d34286c421
3 changed files with 6 additions and 3 deletions
  1. +1
    -1
      consensus/byzantine_test.go
  2. +3
    -1
      rpc/lib/rpc_test.go
  3. +2
    -1
      state/state_test.go

+ 1
- 1
consensus/byzantine_test.go View File

@ -280,7 +280,7 @@ func NewByzantinePrivValidator(pv types.PrivValidator) *ByzantinePrivValidator {
}
}
func (privVal *ByzantinePrivValidator) GetAddress() crypto.Address {
func (privVal *ByzantinePrivValidator) GetAddress() types.Address {
return privVal.pv.GetAddress()
}


+ 3
- 1
rpc/lib/rpc_test.go View File

@ -17,10 +17,12 @@ import (
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
cmn "github.com/tendermint/tmlibs/common"
"github.com/tendermint/tmlibs/log"
client "github.com/tendermint/tendermint/rpc/lib/client"
server "github.com/tendermint/tendermint/rpc/lib/server"
types "github.com/tendermint/tendermint/rpc/lib/types"
"github.com/tendermint/tmlibs/log"
)
// Client and Server should work over tcp or unix sockets


+ 2
- 1
state/state_test.go View File

@ -22,7 +22,8 @@ import (
// setupTestCase does setup common to all test cases
func setupTestCase(t *testing.T) (func(t *testing.T), dbm.DB, State) {
config := cfg.ResetTestRoot("state_")
stateDB := dbm.NewDB("state", config.DBBackend, config.DBDir())
dbType := dbm.DBBackendType(config.DBBackend)
stateDB := dbm.NewDB("state", dbType, config.DBDir())
state, err := LoadStateFromDBOrGenesisFile(stateDB, config.GenesisFile())
assert.NoError(t, err, "expected no error on LoadStateFromDBOrGenesisFile")


Loading…
Cancel
Save