From 47501309ae98dd826353977b266ed9c6871fb85a Mon Sep 17 00:00:00 2001 From: Frank Schroeder Date: Sun, 21 May 2017 20:59:19 +0200 Subject: [PATCH] test: use system temp dir for TestAgent --- command/agent/testagent.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/command/agent/testagent.go b/command/agent/testagent.go index f911142fde..789bfa9c22 100644 --- a/command/agent/testagent.go +++ b/command/agent/testagent.go @@ -25,7 +25,8 @@ func init() { rand.Seed(time.Now().UnixNano()) // seed random number generator } -var TempDir = "/tmp" +// TempDir defines the base dir for temporary directories. +var TempDir = os.TempDir() // TestAgent encapsulates an Agent with a default configuration and // startup procedure suitable for testing. It panics if there are errors