Переглянути джерело

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()
 }