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)."