Commit Graph

4 Commits (25c9f0e4aa47d1048b31d7c99999099c771a00eb)

Author SHA1 Message Date
James Hartig 0934940f4e testutil: If testing.T is nil panic with error (#4725) 2018-10-26 12:13:40 -07:00
Frank Schroeder eded493206
test: sanitize temp dir names since subtest names have slashes 2017-05-31 00:29:22 +02:00
Frank Schroeder 4edd1dcba2 test: fix go vet issue 2017-05-12 22:12:47 +02:00
Frank Schroeder 65b5c51ec7 test: add helper for ioutil.TempDir/TempFile
This creates a simplified helper for temporary directories and files.
All path names are prefixed with the name of the current test.
All files and directories are stored either in /tmp/consul-test
or /tmp if the former could not be created.

Using the system temp dir breaks some tests on macOS where the unix
socket path becomes too long.
2017-05-12 22:12:47 +02:00