test: use system temp dir for TestAgent
This commit is contained in:
parent
adb994a745
commit
51a56cb973
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue