diff --git a/Makefile b/Makefile index ec02f1402..cd8883c4e 100644 --- a/Makefile +++ b/Makefile @@ -144,7 +144,10 @@ godocs: ######################################## ### Testing -test: test_unit +test: + make test_unit + make test_race + make test_sim_modules test_cli: @go test -count 1 -p 1 `go list github.com/cosmos/cosmos-sdk/cmd/gaia/cli_test` -tags=cli_test diff --git a/x/gov/simulation/sim_test.go b/x/gov/simulation/sim_test.go index f19b16482..e7cdbf1ae 100644 --- a/x/gov/simulation/sim_test.go +++ b/x/gov/simulation/sim_test.go @@ -30,7 +30,7 @@ func TestGovWithRandomMessages(t *testing.T) { paramKey := sdk.NewKVStoreKey("params") paramTKey := sdk.NewTransientStoreKey("transient_params") paramKeeper := params.NewKeeper(mapp.Cdc, paramKey, paramTKey) - stakeKeeper := stake.NewKeeper(mapp.Cdc, stakeKey, stakeTKey, bankKeeper, paramKeeper.Subspace(stake.DefaultParamspace), stake.DefaultCodespace) + stakeKeeper := stake.NewKeeper(mapp.Cdc, stakeKey, stakeTKey, bankKeeper, nil, paramKeeper.Subspace(stake.DefaultParamspace), stake.DefaultCodespace) govKey := sdk.NewKVStoreKey("gov") govKeeper := gov.NewKeeper(mapp.Cdc, govKey, paramKeeper, paramKeeper.Subspace(gov.DefaultParamSpace), bankKeeper, stakeKeeper, gov.DefaultCodespace, &sdk.Pool{}) mapp.Router().AddRoute("gov", gov.NewHandler(govKeeper)) diff --git a/x/stake/simulation/sim_test.go b/x/stake/simulation/sim_test.go index d9835e899..c2b029abd 100644 --- a/x/stake/simulation/sim_test.go +++ b/x/stake/simulation/sim_test.go @@ -33,11 +33,11 @@ func TestStakeWithRandomMessages(t *testing.T) { feeCollectionKeeper := auth.NewFeeCollectionKeeper(mapp.Cdc, feeKey) paramstore := params.NewKeeper(mapp.Cdc, paramsKey, paramsTKey) - stakeKeeper := stake.NewKeeper(mapp.Cdc, stakeKey, stakeTKey, bankKeeper, paramstore.Subspace(stake.DefaultParamspace), stake.DefaultCodespace) + stakeKeeper := stake.NewKeeper(mapp.Cdc, stakeKey, stakeTKey, bankKeeper, nil, paramstore.Subspace(stake.DefaultParamspace), stake.DefaultCodespace) distrKeeper := distribution.NewKeeper(mapp.Cdc, distrKey, paramstore.Subspace(distribution.DefaultParamspace), bankKeeper, stakeKeeper, feeCollectionKeeper, distribution.DefaultCodespace) mapp.Router().AddRoute("stake", stake.NewStakeHandler(stakeKeeper)) mapp.SetEndBlocker(func(ctx sdk.Context, req abci.RequestEndBlock) abci.ResponseEndBlock { - validatorUpdates := stake.EndBlocker(ctx, stakeKeeper) + validatorUpdates, _ := stake.EndBlocker(ctx, stakeKeeper) return abci.ResponseEndBlock{ ValidatorUpdates: validatorUpdates, }