From 315f198a45ca2265deb371fb4144856b7eff0445 Mon Sep 17 00:00:00 2001 From: Leon Ding Date: Mon, 11 Sep 2023 00:22:20 +0800 Subject: [PATCH] chore: add codacy coverage. --- test.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test.sh b/test.sh index b68f96c..ea1d048 100755 --- a/test.sh +++ b/test.sh @@ -28,7 +28,7 @@ elif [ "$case_num" -eq 2 ]; then elif [ "$case_num" -eq 3 ]; then echo "Testing server package" elif [ "$case_num" -eq 4 ]; then - cd cmd && go test -c -race -coverprofile=coverage.out -covermode=atomic -v + cd cmd && sudo go test -c -race -coverprofile=coverage.out -covermode=atomic -v sudo ./cmd.test else echo "Invalid option. Please provide a valid option (1, 2, or 3)."