base: env variable, not hard code

Signed-off-by: Vincent Batts <vbatts@hashbangbash.com>
This commit is contained in:
Vincent Batts 2016-09-13 11:19:44 -04:00
parent 6a4df87d10
commit ebef1270a3
1 changed files with 1 additions and 1 deletions

View File

@ -51,7 +51,7 @@ func TestNotSameDev(t *testing.T) {
t.Fatal(err)
}
defer file1.Close()
file2, err := ioutil.TempFile("/home/vbatts", "test")
file2, err := ioutil.TempFile(os.Getenv("HOME"), "test")
if err != nil {
t.Fatal(err)
}