Fix tests; Tests run in their own directory

This commit is contained in:
Jae Kwon
2016-03-06 15:05:50 -08:00
parent fd85d0ef35
commit 03115cbf93
11 changed files with 53 additions and 33 deletions

View File

@ -4,9 +4,13 @@ import (
"testing"
. "github.com/tendermint/go-common"
_ "github.com/tendermint/tendermint/config/tendermint_test"
"github.com/tendermint/tendermint/config/tendermint_test"
)
func init() {
tendermint_test.ResetConfig("types_proposal_test")
}
func TestProposalSignable(t *testing.T) {
proposal := &Proposal{
Height: 12345,

View File

@ -6,11 +6,15 @@ import (
. "github.com/tendermint/go-common"
. "github.com/tendermint/go-common/test"
"github.com/tendermint/go-crypto"
_ "github.com/tendermint/tendermint/config/tendermint_test"
"github.com/tendermint/tendermint/config/tendermint_test"
"testing"
)
func init() {
tendermint_test.ResetConfig("types_vote_set_test")
}
// Move it out?
func randVoteSet(height int, round int, type_ byte, numValidators int, votingPower int64) (*VoteSet, *ValidatorSet, []*PrivValidator) {
valSet, privValidators := RandValidatorSet(numValidators, votingPower)