chore(testing): add missing defer to clean up test temp files (#18948)
parent
c6967ee7b1
commit
25461dddcd
|
@ -14,7 +14,7 @@ func TestLegacyOpen(t *testing.T) {
|
||||||
if err != nil {
|
if err != nil {
|
||||||
t.Fatal(err)
|
t.Fatal(err)
|
||||||
}
|
}
|
||||||
os.RemoveAll(dir)
|
defer os.RemoveAll(dir)
|
||||||
|
|
||||||
sfile := seriesfile.NewSeriesFile(dir)
|
sfile := seriesfile.NewSeriesFile(dir)
|
||||||
if err := sfile.Open(context.Background()); err != nil {
|
if err := sfile.Open(context.Background()); err != nil {
|
||||||
|
|
Loading…
Reference in New Issue