1
0
Fork 0
mirror of https://github.com/vbatts/dedupe-linker.git synced 2024-11-16 05:38:38 +00:00

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

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)
}