diff options
author | Alberto Cortés <alcortesm@gmail.com> | 2017-02-13 16:05:33 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-02-13 16:05:33 +0100 |
commit | a69e1cf378db9eb86fe384ced9a295b5eba7943e (patch) | |
tree | 316ede9fa9d61aa7e401f59c4df3d7e687f608c2 /plumbing/transport/internal | |
parent | d08446c5ad1c3523f1ba05255e38b9eda395408e (diff) | |
download | go-git-a69e1cf378db9eb86fe384ced9a295b5eba7943e.tar.gz |
transport/file: delete suite tmp dir at teardown (#266)
The transport/file common suite test generates a temporal directory; It is used to store the go-git client command and some links to it: git-upload-pack and git-receive-pack.
This directory is not deleted at the test teardown, so every time we run a test, we pollute "/tmp".
This patch adds a teardown function for the suite that deletes the temporal directory.
It also calls the teardown of the embedded fixtures.Suite, which is probably what we want also.
I have also simplify the call to ioutil.TempDir as it already uses the default tmp dir if no dir is provided.
Diffstat (limited to 'plumbing/transport/internal')
0 files changed, 0 insertions, 0 deletions