Skip to content

Commit

Permalink
Change goleveldb to memdb in tests to prevent directories from being …
Browse files Browse the repository at this point in the history
…created.
  • Loading branch information
Taztingo committed Jan 5, 2024
1 parent 9cae233 commit bbad0f0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/store_loader_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ func TestWrapStoreLoader(t *testing.T) {
for _, tc := range tests {
t.Run(tc.name, func(t *testing.T) {
storeLoader := WrapStoreLoader(tc.wrapper, tc.storeLoader)
db := dbm.GoLevelDB{}
db := dbm.MemDB{}
ms := rootmulti.NewStore(&db, nil)
assert.NotNil(t, ms, "should create a new multistore for testing")
flag = false
Expand Down Expand Up @@ -82,7 +82,7 @@ func TestPruningWrapper(t *testing.T) {
logger := log.NewNopLogger()
appOpts := MockAppOptions{pruning: tc.pruning}
storeLoader := PruningWrapper(logger, appOpts, createMockStoreLoader())
db := dbm.GoLevelDB{}
db := dbm.MemDB{}
ms := rootmulti.NewStore(&db, nil)
assert.NotNil(t, ms, "should create a new multistore for testing")

Expand Down

0 comments on commit bbad0f0

Please sign in to comment.