فهرست منبع

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