1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2026-04-22 05:29:14 -04:00
This commit is contained in:
Darien Raymond
2017-04-28 14:48:23 +02:00
parent 7f1e9c85c9
commit 693702350d
6 changed files with 16 additions and 25 deletions

View File

@@ -81,17 +81,14 @@ var (
func genTestBinaryPath() {
testBinaryPathGen.Do(func() {
var tempDir string
err := retry.Timed(5, 100).On(func() error {
common.Must(retry.Timed(5, 100).On(func() error {
dir, err := ioutil.TempDir("", "v2ray")
if err != nil {
return err
}
tempDir = dir
return nil
})
if err != nil {
panic(err)
}
}))
file := filepath.Join(tempDir, "v2ray.test")
if runtime.GOOS == "windows" {
file += ".exe"