github.com/fozzysec/SiaPrime@v0.0.0-20190612043147-66c8e8d11fe3/siatest/renter/consts.go (about) 1 package renter 2 3 import ( 4 "os" 5 6 "SiaPrime/siatest" 7 ) 8 9 // renterTestDir creates a temporary testing directory for a renter test. This 10 // should only every be called once per test. Otherwise it will delete the 11 // directory again. 12 func renterTestDir(testName string) string { 13 path := siatest.TestDir("renter", testName) 14 if err := os.MkdirAll(path, 0777); err != nil { 15 panic(err) 16 } 17 return path 18 }