From 95be224caf24649592f7b8578c3c236f2ef2ac3d Mon Sep 17 00:00:00 2001 From: Darien Raymond Date: Fri, 16 Feb 2018 15:29:22 +0100 Subject: [PATCH] fix coverage test --- testing/scenarios/common_coverage.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/testing/scenarios/common_coverage.go b/testing/scenarios/common_coverage.go index c29aceeae..d0c794410 100644 --- a/testing/scenarios/common_coverage.go +++ b/testing/scenarios/common_coverage.go @@ -26,7 +26,8 @@ func RunV2RayProtobuf(config []byte) *exec.Cmd { covDir := filepath.Join(os.Getenv("GOPATH"), "out", "v2ray", "cov") os.MkdirAll(covDir, os.ModeDir) - profile := uuid.New().String() + ".out" + randomID := uuid.New() + profile := randomID.String() + ".out" proc := exec.Command(testBinaryPath, "-config=stdin:", "-format=pb", "-test.run", "TestRunMainForCoverage", "-test.coverprofile", profile, "-test.outputdir", covDir) proc.Stdin = bytes.NewBuffer(config) proc.Stderr = os.Stderr