Skip to content

Commit

Permalink
test sleep
Browse files Browse the repository at this point in the history
  • Loading branch information
czarcas7ic committed Feb 24, 2024
1 parent c544303 commit 27851a9
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
3 changes: 0 additions & 3 deletions store/rootmulti/store.go
Original file line number Diff line number Diff line change
Expand Up @@ -618,9 +618,6 @@ func (rs *Store) PruneStores(clearPruningManager bool, pruningHeights []int64) (
}
defer rs.pruneMutex.Unlock()

rs.wg.Add(1)
defer rs.wg.Done()

if clearPruningManager {
heights, err := rs.pruningManager.GetFlushAndResetPruningHeights()
if err != nil {
Expand Down
2 changes: 1 addition & 1 deletion store/rootmulti/store_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -511,7 +511,7 @@ func TestMultiStore_Pruning(t *testing.T) {
ms.Commit()
}

ms.wg.Wait()
time.Sleep(1 * time.Second)

for _, v := range tc.saved {
_, err := ms.CacheMultiStoreWithVersion(v)
Expand Down

0 comments on commit 27851a9

Please sign in to comment.