test: use system temp dir for TestAgent

This commit is contained in:
Frank Schroeder 2017-05-21 20:59:19 +02:00
parent adb994a745
commit 51a56cb973
No known key found for this signature in database
GPG key ID: 4D65C6EAEC87DECD

View file

@ -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