Skip to content

Commit

Permalink
fix(test): clan cruft from test run (#8348)
Browse files Browse the repository at this point in the history
This #8319 introduces some
badger instances that are not closed.
  • Loading branch information
joshua-goldstein authored Mar 21, 2023
1 parent 009f639 commit 830c6ea
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions edgraph/server_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -136,9 +136,11 @@ func TestParseSchemaFromAlterOperation(t *testing.T) {
md := metadata.New(map[string]string{"namespace": "123"})
ctx := metadata.NewIncomingContext(context.Background(), md)
dir, err := os.MkdirTemp("", "storetest_")
defer os.RemoveAll(dir)
x.Check(err)
ps, err := badger.OpenManaged(badger.DefaultOptions(dir))
x.Check(err)
defer ps.Close()
schema.Init(ps)

tests := []struct {
Expand Down

0 comments on commit 830c6ea

Please sign in to comment.