mirror of
https://github.com/v2fly/v2ray-core.git
synced 2026-04-22 05:29:14 -04:00
refactor
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user