Преглед изворни кода

enable race detector for scenario test

Darien Raymond пре 7 година
родитељ
комит
180c269c79
1 измењених фајлова са 1 додато и 1 уклоњено
  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()
 }