Simplify test slightly

This commit is contained in:
Christopher Goes 2018-07-07 02:01:02 +02:00
parent eafd1e492f
commit dbe7744b14
1 changed files with 2 additions and 5 deletions

View File

@ -94,13 +94,10 @@ func TestUpdateValidatorByPowerIndex(t *testing.T) {
}
func TestZeroPowerUnbonded(t *testing.T) {
ctx, _, keeper := CreateTestInput(t, false, 0)
// initialize setup
ctx, _, keeper := CreateTestInput(t, false, 100)
pool := keeper.GetPool(ctx)
// create a random pool
pool.LooseTokens = 10000
keeper.SetPool(ctx, pool)
// add a validator
validator := types.NewValidator(addrVals[0], PKs[0], types.Description{})
validator, pool, _ = validator.AddTokensFromDel(pool, 100)