Skip to content

Commit

Permalink
so windows dont have /tmp
Browse files Browse the repository at this point in the history
Setting TempDir dir to empty string has the
effect of go picking the right location (?)
  • Loading branch information
proditis committed May 17, 2022
1 parent 328a2d7 commit ce41987
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion probe/results_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ func TestAll(t *testing.T) {
t.Errorf("LoadFromFile(-) error: %s", err)
}

tmpdir, err := ioutil.TempDir("/tmp", "easeprobe")
tmpdir, err := ioutil.TempDir("", "easeprobe")
if err != nil {
t.Errorf("TempDir(%s) error: %s", tmpdir, err)
}
Expand Down

0 comments on commit ce41987

Please sign in to comment.