Merge pull request #8667 from zhouhao3/clean-tmpfile

cleanup tempfiles for load_test
pull/8677/head
Matthew Fisher 4 years ago committed by GitHub
commit ac983a644b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -310,7 +310,7 @@ func TestLoadInvalidArchive(t *testing.T) {
if err != nil { if err != nil {
t.Fatal(err) t.Fatal(err)
} }
defer os.Remove(tmpdir) defer os.RemoveAll(tmpdir)
writeTar := func(filename, internalPath string, body []byte) { writeTar := func(filename, internalPath string, body []byte) {
dest, err := os.Create(filename) dest, err := os.Create(filename)

Loading…
Cancel
Save