Remove random test failures

This commit is contained in:
Ethan Frey 2017-09-05 17:34:04 +02:00
parent 163634daf7
commit 080d9a1e31
1 changed files with 3 additions and 4 deletions

View File

@ -5,11 +5,13 @@ import (
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
abci "github.com/tendermint/abci/types"
"github.com/cosmos/cosmos-sdk/modules/base"
wire "github.com/tendermint/go-wire"
cmn "github.com/tendermint/tmlibs/common"
"github.com/tendermint/tmlibs/log"
"github.com/cosmos/cosmos-sdk/modules/base"
)
//-----------------------------------
@ -30,9 +32,6 @@ func makeVal() *abci.Validator {
func withNewPower(val *abci.Validator) *abci.Validator {
res := *val
res.Power = randPower()
if res.Power == val.Power {
panic("no no")
}
return &res
}