Skip to content

Commit

Permalink
Ensure BucketStore.Close() is called in e2e tests too
Browse files Browse the repository at this point in the history
Signed-off-by: Marco Pracucci <[email protected]>
  • Loading branch information
pracucci committed Nov 12, 2020
1 parent c0b5e7d commit d10bbce
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/store/bucket_e2e_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,8 @@ func prepareStoreWithTestBlocks(t testing.TB, dir string, bkt objstore.Bucket, m
time.Minute,
)
testutil.Ok(t, err)
defer func() { testutil.Ok(t, store.Close()) }()

s.store = store

if manyParts {
Expand Down

0 comments on commit d10bbce

Please sign in to comment.