diff --git a/x/epoching/simulation/genesis.go b/x/epoching/simulation/genesis.go index 074a8e5a5..6ff55a0f7 100644 --- a/x/epoching/simulation/genesis.go +++ b/x/epoching/simulation/genesis.go @@ -18,7 +18,7 @@ const ( // genUnbondingTime returns randomized UnbondingTime func genEpochInterval(r *rand.Rand) uint64 { - return uint64(r.Intn(250) + 1) + return uint64(r.Intn(10) + 1) } // RandomizedGenState generates a random GenesisState for staking diff --git a/x/epoching/simulation/genesis_test.go b/x/epoching/simulation/genesis_test.go index 35c910d13..aef4001c5 100644 --- a/x/epoching/simulation/genesis_test.go +++ b/x/epoching/simulation/genesis_test.go @@ -41,7 +41,7 @@ func TestRandomizedGenState(t *testing.T) { var epochingGenesis types.GenesisState simState.Cdc.MustUnmarshalJSON(simState.GenState[types.ModuleName], &epochingGenesis) - require.Equal(t, uint64(0x29), epochingGenesis.Params.EpochInterval) + require.Equal(t, uint64(0x1), epochingGenesis.Params.EpochInterval) } // TestRandomizedGenState1 tests abnormal scenarios of applying RandomizedGenState.