mirror of
https://github.com/fluencelabs/tendermint
synced 2025-06-26 11:11:41 +00:00
Fix tests; Tests run in their own directory
This commit is contained in:
@ -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,
|
||||
|
@ -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)
|
||||
|
Reference in New Issue
Block a user