Procházet zdrojové kódy

enable race detector for scenario test

Darien Raymond před 7 roky
rodič
revize
180c269c79
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      testing/scenarios/common_regular.go

+ 1 - 1
testing/scenarios/common_regular.go

@@ -16,7 +16,7 @@ func BuildV2Ray() error {
 	}
 
 	fmt.Printf("Building V2Ray into path (%s)\n", testBinaryPath)
-	cmd := exec.Command("go", "build", "-o="+testBinaryPath, GetSourcePath())
+	cmd := exec.Command("go", "build", "-race", "-o="+testBinaryPath, GetSourcePath())
 	return cmd.Run()
 }