v2ray 9 년 전
부모
커밋
0b2df7f658
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      testing/scenarios/server_env_coverage.go

+ 1 - 1
testing/scenarios/server_env_coverage.go

@@ -24,7 +24,7 @@ func BuildV2Ray() error {
 func RunV2Ray(configFile string) *exec.Cmd {
 	profile := "coversingle.out"
 	wd, err := os.Getwd()
-	if err != nil {
+	if err == nil {
 		profile = filepath.Join(wd, profile)
 	}
 	proc := exec.Command(binaryPath, "-config", configFile, "-test.run", "TestRunMainForCoverage", "-test.coverprofile", profile)