Skip to content

Commit

Permalink
Add sqlite cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
bcmmbaga committed Jun 12, 2024
1 parent 14639af commit af06be4
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions management/server/store.go
Original file line number Diff line number Diff line change
Expand Up @@ -196,9 +196,7 @@ func NewTestStoreFromJson(dataDir string) (Store, func(), error) {

var (
store Store
cleanUp = func() {
// empty store cleanUp
}
cleanUp func()
)

if kind == PostgresStoreEngine {
Expand All @@ -221,6 +219,7 @@ func NewTestStoreFromJson(dataDir string) (Store, func(), error) {
if err != nil {
return nil, nil, err
}
cleanUp = func() { store.Close() }
}

return store, cleanUp, nil
Expand Down

0 comments on commit af06be4

Please sign in to comment.