diff --git a/testing/scenarios/common_coverage.go b/testing/scenarios/common_coverage.go index d0c794410..6b14a3682 100644 --- a/testing/scenarios/common_coverage.go +++ b/testing/scenarios/common_coverage.go @@ -17,7 +17,7 @@ func BuildV2Ray() error { return nil } - cmd := exec.Command("go", "test", "-tags", "json coverage coveragemain", "-coverpkg", "v2ray.com/core/...", "-c", "-o", testBinaryPath, GetSourcePath()) + cmd := exec.Command("go", "test", "-tags", "coverage coveragemain", "-coverpkg", "v2ray.com/core/...", "-c", "-o", testBinaryPath, GetSourcePath()) return cmd.Run() } diff --git a/testing/scenarios/common_regular.go b/testing/scenarios/common_regular.go index 6c5662d82..fc3d29970 100644 --- a/testing/scenarios/common_regular.go +++ b/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", "-tags=json", "-o="+testBinaryPath, GetSourcePath()) + cmd := exec.Command("go", "build", "-o="+testBinaryPath, GetSourcePath()) return cmd.Run() }