chore(testing): add missing defer to clean up test temp files (#18948)

pull/18935/head
Phil Bracikowski 2020-07-14 13:52:28 -07:00 committed by GitHub
parent c6967ee7b1
commit 25461dddcd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -14,7 +14,7 @@ func TestLegacyOpen(t *testing.T) {
if err != nil {
t.Fatal(err)
}
os.RemoveAll(dir)
defer os.RemoveAll(dir)
sfile := seriesfile.NewSeriesFile(dir)
if err := sfile.Open(context.Background()); err != nil {