mirror of https://github.com/status-im/consul.git
test: use system temp dir for TestAgent
This commit is contained in:
parent
0c905a0df8
commit
47501309ae
|
@ -25,7 +25,8 @@ func init() {
|
||||||
rand.Seed(time.Now().UnixNano()) // seed random number generator
|
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
|
// TestAgent encapsulates an Agent with a default configuration and
|
||||||
// startup procedure suitable for testing. It panics if there are errors
|
// startup procedure suitable for testing. It panics if there are errors
|
||||||
|
|
Loading…
Reference in New Issue