cosmos-sdk/store
Mark Rushakoff 0b09920c0a
test(store): ensure busy manager goroutine is finished (#15788)
## Description

Without this change, there were intermittent failures due to a non-empty t.TempDir() directory at the end of a test:

```console
$ go test  -run=LoadChunk$ ./snapshots/ -count=220 -failfast 
--- FAIL: TestManager_LoadChunk (0.01s)
    testing.go:1225: TempDir RemoveAll cleanup: unlinkat /var/folders/.../T/TestManager_LoadChunk1472891739/001: directory not empty
FAIL
FAIL    cosmossdk.io/store/snapshots    0.177s
```

With this change, I can no longer reproduce the flaky failure:

```console
$ go test -run=LoadChunk$ ./snapshots/ -count=1000 -failfast
ok      cosmossdk.io/store/snapshots    15.722s
```
---

### Author Checklist

*All items are required. Please add a note to the item if the item is not applicable and
please add links to any relevant follow up issues.*

I have...

- [x] included the correct [type prefix](https://github.com/commitizen/conventional-commit-types/blob/v3.0.0/index.json) in the PR title
- [x] targeted the correct branch (see [PR Targeting](https://github.com/cosmos/cosmos-sdk/blob/main/CONTRIBUTING.md#pr-targeting))
- [x] provided a link to the relevant issue or specification
- [x] reviewed "Files changed" and left comments if necessary
- [ ] confirmed all CI checks have passed

### Reviewers Checklist

*All items are required. Please add a note if the item is not applicable and please add
your handle next to the items reviewed if you only reviewed selected items.*

I have...

- [ ] confirmed the correct [type prefix](https://github.com/commitizen/conventional-commit-types/blob/v3.0.0/index.json) in the PR title
- [ ] confirmed all author checklist items have been addressed
- [ ] confirmed that this PR does not change production code
2023-04-11 16:33:39 +00:00
..
cache refactor: create go.mod for store (#14746) 2023-01-25 13:31:56 +00:00
cachekv style: fix linting issues in store module (#15724) 2023-04-06 21:58:52 +00:00
cachemulti refactor: create go.mod for store (#14746) 2023-01-25 13:31:56 +00:00
dbadapter refactor: create go.mod for store (#14746) 2023-01-25 13:31:56 +00:00
gaskv style: gofumpt linting (#15605) 2023-03-30 06:27:38 +00:00
iavl style: fix linting issues in store module (#15724) 2023-04-06 21:58:52 +00:00
internal style: fix linting issues in store module (#15724) 2023-04-06 21:58:52 +00:00
listenkv style: gofumpt linting (#15605) 2023-03-30 06:27:38 +00:00
mem style: fix linting issues in store module (#15724) 2023-04-06 21:58:52 +00:00
metrics refactor: remove global metrics in store (#14439) 2022-12-30 14:46:29 +01:00
mock chore: iavl-v0.20-alpha1 and cosmos-db (#14411) 2022-12-28 21:42:00 +01:00
prefix style: gofumpt linting (#15605) 2023-03-30 06:27:38 +00:00
pruning test: use t.Parallel to speed up pruning tests (#15139) 2023-02-23 19:51:02 +00:00
rootmulti feat: More flexibility for CacheMultiStoreWithVersion (#15683) 2023-04-10 20:30:28 +00:00
snapshots test(store): ensure busy manager goroutine is finished (#15788) 2023-04-11 16:33:39 +00:00
streaming style: gofumpt linting (#15605) 2023-03-30 06:27:38 +00:00
tracekv style: gofumpt linting (#15605) 2023-03-30 06:27:38 +00:00
transient refactor: create go.mod for store (#14746) 2023-01-25 13:31:56 +00:00
types style: fix linting issues in store module (#15724) 2023-04-06 21:58:52 +00:00
CHANGELOG.md feat: More flexibility for CacheMultiStoreWithVersion (#15683) 2023-04-10 20:30:28 +00:00
go.mod build(deps): Bump golang.org/x/crypto from 0.7.0 to 0.8.0 (#15733) 2023-04-07 16:25:45 +00:00
go.sum build(deps): Bump golang.org/x/crypto from 0.7.0 to 0.8.0 (#15733) 2023-04-07 16:25:45 +00:00
reexport.go refactor: create go.mod for store (#14746) 2023-01-25 13:31:56 +00:00
sonar-project.properties refactor: create go.mod for store (#14746) 2023-01-25 13:31:56 +00:00
store.go feat!: use cosmossdk.io/log logger (#15011) 2023-02-27 21:36:22 +00:00