Skip to content

Commit

Permalink
format files
Browse files Browse the repository at this point in the history
  • Loading branch information
kingpinXD committed Oct 23, 2024
1 parent 33bb1b9 commit 9791e99
Showing 1 changed file with 25 additions and 3 deletions.
28 changes: 25 additions & 3 deletions tests/simulation/sim_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,13 @@ func TestAppImportExport(t *testing.T) {
require.NoError(t, os.RemoveAll(newDir))
}()

newSimApp, err := simutils.NewSimApp(logger, newDB, appOptions, interBlockCacheOpt(), baseapp.SetChainID(SimAppChainID))
newSimApp, err := simutils.NewSimApp(
logger,
newDB,
appOptions,
interBlockCacheOpt(),
baseapp.SetChainID(SimAppChainID),
)
require.NoError(t, err)

var genesisState app.GenesisState
Expand Down Expand Up @@ -370,7 +376,17 @@ func TestAppImportExport(t *testing.T) {
require.Equal(t, len(failedKVAs), len(failedKVBs), "unequal sets of key-values to compare")

t.Logf("compared %d different key/value pairs between %s and %s\n", len(failedKVAs), skp.A, skp.B)
require.Equal(t, 0, len(failedKVAs), cosmossimutils.GetSimulationLog(skp.A.Name(), simApp.SimulationManager().StoreDecoders, failedKVAs, failedKVBs))
require.Equal(
t,
0,
len(failedKVAs),
cosmossimutils.GetSimulationLog(
skp.A.Name(),
simApp.SimulationManager().StoreDecoders,
failedKVAs,
failedKVBs,
),
)
}
}

Expand Down Expand Up @@ -456,7 +472,13 @@ func TestAppSimulationAfterImport(t *testing.T) {
require.NoError(t, os.RemoveAll(newDir))
}()

newSimApp, err := simutils.NewSimApp(logger, newDB, appOptions, interBlockCacheOpt(), baseapp.SetChainID(SimAppChainID))
newSimApp, err := simutils.NewSimApp(
logger,
newDB,
appOptions,
interBlockCacheOpt(),
baseapp.SetChainID(SimAppChainID),
)
require.NoError(t, err)

newSimApp.InitChain(abci.RequestInitChain{
Expand Down

0 comments on commit 9791e99

Please sign in to comment.