From d34286c421db76c4d4ff2b17f80a66386563c621 Mon Sep 17 00:00:00 2001 From: Ethan Buchman Date: Sat, 3 Feb 2018 03:54:49 -0500 Subject: [PATCH] minor fixes - tests pass --- consensus/byzantine_test.go | 2 +- rpc/lib/rpc_test.go | 4 +++- state/state_test.go | 3 ++- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/consensus/byzantine_test.go b/consensus/byzantine_test.go index faf65ecd1..38bb37474 100644 --- a/consensus/byzantine_test.go +++ b/consensus/byzantine_test.go @@ -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() } diff --git a/rpc/lib/rpc_test.go b/rpc/lib/rpc_test.go index 8c8b57612..cadc68f8e 100644 --- a/rpc/lib/rpc_test.go +++ b/rpc/lib/rpc_test.go @@ -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 diff --git a/state/state_test.go b/state/state_test.go index ff17eac9c..76b713aee 100644 --- a/state/state_test.go +++ b/state/state_test.go @@ -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")