Skip to content

Commit

Permalink
add Close() call
Browse files Browse the repository at this point in the history
  • Loading branch information
kocubinski committed Nov 6, 2024
1 parent 7c32d2f commit 7e5f838
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/integration/v2/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -405,3 +405,7 @@ func (a *App) CheckBalance(
balances := keeper.GetAllBalances(ctx, addr)
require.Equal(t, expected, balances)
}

func (a *App) Close() error {
return a.Store.Close()
}
2 changes: 2 additions & 0 deletions tests/integration/v2/bank/determinisitic_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -423,6 +423,8 @@ func TestDenomsMetadata(t *testing.T) {
testdata.DeterministicIterationsV2(t, req, gasMeterFactory, queryFn, assertNonZeroGas, nil)
})

require.NoError(t, f.app.Close())

f = initDeterministicFixture(t) // reset
f.ctx = f.app.StateLatestContext(t)
gasMeterFactory = integration.GasMeterFactory(f.ctx)
Expand Down

0 comments on commit 7e5f838

Please sign in to comment.