Merge PR #1325: Refactor Complete Setup to not take in a testing parameter

* Refactor Complete Setup to not take in a testing parameter
* Update changelog
This commit is contained in:
Dev Ojha
2018-06-21 18:55:08 +02:00
committed by Christopher Goes
parent fb7e370c65
commit e2d23040a8
9 changed files with 15 additions and 14 deletions
+2 -1
View File
@@ -4,6 +4,7 @@ import (
"testing"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
abci "github.com/tendermint/abci/types"
crypto "github.com/tendermint/go-crypto"
@@ -56,7 +57,7 @@ func getMockApp(t *testing.T) *mock.App {
mapp.SetInitChainer(getInitChainer(mapp, keeper, "ice-cold"))
mapp.CompleteSetup(t, []*sdk.KVStoreKey{keyCool})
require.NoError(t, mapp.CompleteSetup([]*sdk.KVStoreKey{keyCool}))
return mapp
}
+2 -1
View File
@@ -4,6 +4,7 @@ import (
"testing"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/cosmos/cosmos-sdk/x/auth"
@@ -32,7 +33,7 @@ func getMockApp(t *testing.T) *mock.App {
mapp.SetInitChainer(getInitChainer(mapp, keeper))
mapp.CompleteSetup(t, []*sdk.KVStoreKey{keyPOW})
require.NoError(t, mapp.CompleteSetup([]*sdk.KVStoreKey{keyPOW}))
return mapp
}