Skip to content

Commit

Permalink
[1760]: Disable address caching in TestAddGenesisCustomMarketCmd beca…
Browse files Browse the repository at this point in the history
…use it was asking for an address previously encoded with the wrong hrp.
  • Loading branch information
SpicyLemon committed May 13, 2024
1 parent b810363 commit 51248cc
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions cmd/provenanced/cmd/genaccounts_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ var testMbm = module.NewBasicManager(genutil.AppModuleBasic{})
func TestAddGenesisAccountCmd(t *testing.T) {
appCodec := app.MakeTestEncodingConfig(t).Marshaler
_, _, addr1 := testdata.KeyTestPubAddr()

tests := []struct {
name string
addr string
Expand Down Expand Up @@ -597,6 +598,10 @@ func TestMakeDefaultMarket(t *testing.T) {
}

func TestAddGenesisCustomMarketCmd(t *testing.T) {
origCache := sdk.IsAddrCacheEnabled()
defer sdk.SetAddrCacheEnabled(origCache)
sdk.SetAddrCacheEnabled(false)

cdc := app.MakeTestEncodingConfig(t).Marshaler

tests := []struct {
Expand Down

0 comments on commit 51248cc

Please sign in to comment.